OTHER: move togglePlaytime to Application class and some other small fixes

This commit is contained in:
Thomas Frauendorfer 2008-11-04 14:26:19 +01:00
parent 461106eb43
commit 786b745d55
17 changed files with 59 additions and 45 deletions

View file

@ -20,6 +20,7 @@ class Application;
#undef qApp
#endif
#define qApp (static_cast<Application *>(QCoreApplication::instance()))
#define App (static_cast<Application *>(QCoreApplication::instance()))
class Application : public QApplication
{
@ -31,7 +32,19 @@ class Application : public QApplication
public:
Application (int &argc, char **argv);
public slots:
void cleanupHandler ();
void handleDisconnected ();
// TODO: Search some better place for those methods
public:
bool isTimemodeReverse(void) {return m_timemode_reverse;}
void setTimemodeReverse(bool b) {m_timemode_reverse = b;}
public slots:
void toggleTime () {m_timemode_reverse = !m_timemode_reverse;}
private:
bool m_timemode_reverse;
};