Changed welcome screens preferences button to Oximetry

This commit is contained in:
Mark Watkins 2011-08-05 18:20:28 +10:00
parent 0f331ad50a
commit cb0ef8225c
5 changed files with 13 additions and 4 deletions

View File

@ -13,5 +13,6 @@
<file>fonts/FreeSans.ttf</file> <file>fonts/FreeSans.ttf</file>
<file>icons/refresh.png</file> <file>icons/refresh.png</file>
<file>docs/usage.html</file> <file>docs/usage.html</file>
<file>icons/oximeter.png</file>
</qresource> </qresource>
</RCC> </RCC>

BIN
icons/oximeter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

@ -363,3 +363,10 @@ void MainWindow::on_actionDisplay_Graph_Snapshots_toggled(bool checked)
pref["EnableGraphSnapshots"]=checked; pref["EnableGraphSnapshots"]=checked;
//} //}
} }
void MainWindow::on_oximetryButton_clicked()
{
if (oximetry) {
ui->tabWidget->setCurrentWidget(oximetry);
}
}

View File

@ -82,6 +82,8 @@ private slots:
void on_actionDisplay_Graph_Snapshots_toggled(bool arg1); void on_actionDisplay_Graph_Snapshots_toggled(bool arg1);
void on_oximetryButton_clicked();
private: private:
Ui::MainWindow *ui; Ui::MainWindow *ui;
Daily * daily; Daily * daily;

View File

@ -494,7 +494,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="preferencesButton"> <widget class="QToolButton" name="oximetryButton">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch> <horstretch>0</horstretch>
@ -508,11 +508,11 @@
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string>Preferences</string> <string>Oximetry</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="Resources.qrc"> <iconset resource="Resources.qrc">
<normaloff>:/icons/preferences.png</normaloff>:/icons/preferences.png</iconset> <normaloff>:/icons/oximeter.png</normaloff>:/icons/oximeter.png</iconset>
</property> </property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
@ -578,7 +578,6 @@
</property> </property>
<addaction name="action_Import_Data"/> <addaction name="action_Import_Data"/>
<addaction name="action_Preferences"/> <addaction name="action_Preferences"/>
<addaction name="action_Profiles"/>
<addaction name="separator"/> <addaction name="separator"/>
<addaction name="actionE_xit"/> <addaction name="actionE_xit"/>
</widget> </widget>