source: trunk/qt/tricontoolbutton.h @ 14389

Last change on this file since 14389 was 14389, checked in by mikedld, 8 years ago

Move status bar creation to mainwin.ui

Among other things,

  • fix turtle icons size (20x14 -> 16x16)
  • use QIcon states instead of changing the turtle icon ourselves each time (unchecked - off, checked - on)
  • make speed limit action in tray menu checkable
  • simplify status bar buttons drawing and use QToolButton instead of QPushButton
  • Property svn:keywords set to Date Rev Author Id
File size: 486 bytes
Line 
1/*
2 * This file Copyright (C) 2009-2014 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: tricontoolbutton.h 14389 2014-12-18 01:30:50Z mikedld $
8 */
9
10#ifndef QTR_ICON_TOOL_BUTTON_H
11#define QTR_ICON_TOOL_BUTTON_H
12
13#include <QToolButton>
14
15class TrIconToolButton: public QToolButton
16{
17    Q_OBJECT
18
19  public:
20    TrIconToolButton (QWidget * parent = nullptr);
21
22  protected:
23    virtual void paintEvent (QPaintEvent * event);
24};
25
26#endif // QTR_ICON_TOOL_BUTTON_H
Note: See TracBrowser for help on using the repository browser.