yea fixed settings,version bum

This commit is contained in:
Patrick von Reth 2010-12-31 18:28:51 +01:00
parent 5cdf8a6908
commit 02667e4285
4 changed files with 10 additions and 3 deletions

View File

@ -27,7 +27,7 @@
#include <QSystemTrayIcon>
QString const SnoreServer::version(){
return "0.2";
return "0.2.5";
}
QString const SnoreServer::snoreTMP(){

View File

@ -6,7 +6,8 @@
int main ( int argc, char *argv[] )
{
QApplication a ( argc, argv );
SnoreNotify();
SnoreNotify *sn = new SnoreNotify();
return a.exec();
delete sn;
}

View File

@ -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" );

View File

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