source: trunk/qt/IconToolButton.cc @ 14537

Last change on this file since 14537 was 14537, checked in by mikedld, 6 years ago

Use PascalCase? for Qt client filenames

Split FileTree?.{h,cc} and FilterBar?.{h,cc} files so that each class
is in its own file.

This breaks translations (some classes got renamed => context changed),
to be fixed by next commit (along with Tx sync).

  • Property svn:keywords set to Date Rev Author Id
File size: 640 bytes
Line 
1/*
2 * This file Copyright (C) 2009-2015 Mnemosyne LLC
3 *
4 * It may be used under the GNU GPL versions 2 or 3
5 * or any future license endorsed by Mnemosyne LLC.
6 *
7 * $Id: IconToolButton.cc 14537 2015-06-10 21:27:11Z mikedld $
8 */
9
10#include <QStyleOption>
11#include <QStyleOptionToolButton>
12#include <QStylePainter>
13
14#include "IconToolButton.h"
15
16IconToolButton::IconToolButton (QWidget * parent):
17  QToolButton (parent)
18{
19}
20
21void IconToolButton::paintEvent (QPaintEvent * /*event*/)
22{
23  QStylePainter painter(this);
24  QStyleOptionToolButton option;
25  initStyleOption (&option);
26  option.features &= ~QStyleOptionToolButton::HasMenu;
27  painter.drawComplexControl(QStyle::CC_ToolButton, option);
28}
Note: See TracBrowser for help on using the repository browser.