File tree 3 files changed +32
-5
lines changed
3 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 37
37
#include " accountdetail.h"
38
38
39
39
QString MainWindow::appPath = QString(" " );
40
+ QUrl MainWindow::projectWebsite = QUrl(" http://github.com/Raven24/FSugar" );
40
41
MainWindow* MainWindow::instance = NULL ;
41
42
42
43
MainWindow::MainWindow (QWidget *parent) :
@@ -162,6 +163,8 @@ MainWindow::MainWindow(QWidget *parent) :
162
163
this , SLOT (loadStyle ()));
163
164
connect (ui->actionAboutQt , SIGNAL (triggered ()),
164
165
qApp, SLOT (aboutQt ()));
166
+ connect (ui->actionWebsite , SIGNAL (triggered ()),
167
+ this , SLOT (openProjectHomepage ()));
165
168
connect (qApp, SIGNAL (aboutToQuit ()),
166
169
this , SLOT (cleanup ()));
167
170
@@ -412,3 +415,8 @@ void MainWindow::loadStyle()
412
415
QString stylesheet (style.readAll ());
413
416
qApp->setStyleSheet (stylesheet);
414
417
}
418
+
419
+ void MainWindow::openProjectHomepage ()
420
+ {
421
+ QDesktopServices::openUrl (MainWindow::projectWebsite);
422
+ }
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ class MainWindow : public QMainWindow {
51
51
~MainWindow ();
52
52
53
53
static QString appPath;
54
+ static QUrl projectWebsite;
54
55
static MainWindow* getInstance ();
55
56
56
57
QTabWidget *mainWidget;
@@ -70,6 +71,7 @@ public slots:
70
71
void displayCalendar ();
71
72
void displayPressList ();
72
73
void displaySettings ();
74
+ void openProjectHomepage ();
73
75
74
76
void cleanup ();
75
77
Original file line number Diff line number Diff line change 6
6
<rect >
7
7
<x >0</x >
8
8
<y >0</y >
9
- <width >796 </width >
10
- <height >596 </height >
9
+ <width >900 </width >
10
+ <height >500 </height >
11
11
</rect >
12
12
</property >
13
13
<property name =" windowTitle" >
19
19
<rect >
20
20
<x >0</x >
21
21
<y >0</y >
22
- <width >796 </width >
23
- <height >26 </height >
22
+ <width >900 </width >
23
+ <height >22 </height >
24
24
</rect >
25
25
</property >
26
26
<widget class =" QMenu" name =" menuTest" >
27
27
<property name =" title" >
28
- <string >Datei </string >
28
+ <string >Programm </string >
29
29
</property >
30
30
<addaction name =" actionLogin" />
31
31
<addaction name =" actionLogout" />
47
47
<property name =" title" >
48
48
<string >Hilfe</string >
49
49
</property >
50
+ <addaction name =" actionWebsite" />
51
+ <addaction name =" separator" />
50
52
<addaction name =" actionAboutQt" />
51
53
</widget >
52
54
<addaction name =" menuTest" />
119
121
<property name =" text" >
120
122
<string >Style neu laden</string >
121
123
</property >
124
+ <property name =" toolTip" >
125
+ <string >Stylesheet neu laden</string >
126
+ </property >
127
+ </action >
128
+ <action name =" actionWebsite" >
129
+ <property name =" icon" >
130
+ <iconset resource =" app.qrc" >
131
+ <normaloff >:/visit-website.png</normaloff >:/visit-website.png</iconset >
132
+ </property >
133
+ <property name =" text" >
134
+ <string >Website</string >
135
+ </property >
136
+ <property name =" toolTip" >
137
+ <string >Öffnet die Projektseite</string >
138
+ </property >
122
139
</action >
123
140
</widget >
124
141
<resources >
You can’t perform that action at this time.
0 commit comments