mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
* context menu * timer based component can fire directly * View base class (non templated) so it can use Q_OBJECT
This commit is contained in:
@@ -22,6 +22,8 @@ namespace BlackGui
|
||||
//! Timer based componenet
|
||||
class CTimerBasedComponent: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
CTimerBasedComponent(const char *slot, QObject *parent);
|
||||
@@ -46,8 +48,12 @@ namespace BlackGui
|
||||
//! Stop timer
|
||||
void stopTimer() { this->setUpdateInterval(-1); }
|
||||
|
||||
//! Fire the timer straight away
|
||||
void fireTimer();
|
||||
|
||||
private:
|
||||
QTimer *m_timer;
|
||||
QTimer *m_timerSingleShot;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user