yea fixed settings,version bum
This commit is contained in:
parent
5cdf8a6908
commit
02667e4285
|
@ -27,7 +27,7 @@
|
|||
#include <QSystemTrayIcon>
|
||||
|
||||
QString const SnoreServer::version(){
|
||||
return "0.2";
|
||||
return "0.2.5";
|
||||
}
|
||||
|
||||
QString const SnoreServer::snoreTMP(){
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
int main ( int argc, char *argv[] )
|
||||
{
|
||||
QApplication a ( argc, argv );
|
||||
SnoreNotify();
|
||||
SnoreNotify *sn = new SnoreNotify();
|
||||
return a.exec();
|
||||
delete sn;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,6 +58,11 @@ SnoreNotify::SnoreNotify()
|
|||
connect(qApp,SIGNAL(aboutToQuit()),this,SLOT(exit()));
|
||||
}
|
||||
|
||||
SnoreNotify::~SnoreNotify(){
|
||||
delete _snore;
|
||||
delete _trayIcon;
|
||||
}
|
||||
|
||||
void SnoreNotify::load(){
|
||||
QDomDocument doc( "Settings" );
|
||||
QFile file( PROFILEPATH + "settings.xml" );
|
||||
|
|
|
@ -24,6 +24,7 @@ class SnoreNotify:public QObject
|
|||
Q_OBJECT
|
||||
public:
|
||||
SnoreNotify();
|
||||
~SnoreNotify();
|
||||
void load();
|
||||
void save();
|
||||
|
||||
|
@ -31,7 +32,7 @@ private:
|
|||
class TrayIcon *_trayIcon;
|
||||
class SnoreServer *_snore;
|
||||
|
||||
public slots:
|
||||
private slots:
|
||||
void exit();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue