Ignore:
Timestamp:
Dec 18, 2014, 1:30:50 AM (8 years ago)
Author:
mikedld
Message:

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
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/qt/tricontoolbutton.h

    r14388 r14389  
    88 */
    99
    10 #ifndef QTR_IconPushButton_H
    11 #define QTR_IconPushButton_H
     10#ifndef QTR_ICON_TOOL_BUTTON_H
     11#define QTR_ICON_TOOL_BUTTON_H
    1212
    13 #include <QPushButton>
     13#include <QToolButton>
    1414
    15 class QIcon;
    16 
    17 class TrIconPushButton: public QPushButton
     15class TrIconToolButton: public QToolButton
    1816{
    1917    Q_OBJECT
    2018
    2119  public:
    22     TrIconPushButton (QWidget * parent = 0);
    23     TrIconPushButton (const QIcon&, QWidget * parent = 0);
    24     virtual ~TrIconPushButton () {}
    25     QSize sizeHint () const;
     20    TrIconToolButton (QWidget * parent = nullptr);
    2621
    2722  protected:
    28     void paintEvent (QPaintEvent * event);
     23    virtual void paintEvent (QPaintEvent * event);
    2924};
    3025
    31 #endif // QTR_IconPushButton_H
     26#endif // QTR_ICON_TOOL_BUTTON_H
Note: See TracChangeset for help on using the changeset viewer.