refs #319, refs #322 user can force reload and clearing the data in views

* context menu
* timer based component can fire directly
* View base class (non templated) so it can use Q_OBJECT
This commit is contained in:
Klaus Basan
2014-09-08 23:34:39 +02:00
parent b576e21b48
commit bce67b7873
8 changed files with 77 additions and 68 deletions

View File

@@ -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;
};
}
}