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