Changeset 14389 for trunk/qt/mainwin.h


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 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/mainwin.h

    r14385 r14389  
    7070    TorrentModel& myModel;
    7171    Ui_MainWindow ui;
    72     QIcon mySpeedModeOffIcon;
    73     QIcon mySpeedModeOnIcon;
    7472    time_t myLastSendTime;
    7573    time_t myLastReadTime;
     
    147145  private:
    148146    QMenu * createOptionsMenu ();
    149     QWidget * createStatusBar ();
    150     QWidget * myStatusBar;
    151     QPushButton * myAltSpeedButton;
     147    QMenu * createStatsModeMenu ();
     148    void initStatusBar ();
     149
    152150    QAction * myAltSpeedAction;
    153     QPushButton * myOptionsButton;
    154     QPushButton * myStatsModeButton;
    155     QLabel * myStatsLabel;
    156     QLabel * myDownloadSpeedLabel;
    157     QLabel * myUploadSpeedLabel;
    158     QLabel * myNetworkLabel;
    159151    QString myErrorMessage;
    160152
Note: See TracChangeset for help on using the changeset viewer.