Revisão | 72ba8e7d3cf7b1da7242aba9a9e27b08ca7f80c0 (tree) |
---|---|
Hora | 2013-02-06 17:38:26 |
Autor | alucky4416 <alucky4416@user...> |
Commiter | alucky4416 |
ADD: IconImage to LogStartButton.
@@ -0,0 +1,7 @@ | ||
1 | +<RCC> | |
2 | + <qresource prefix="/Images"> | |
3 | + <file>USBRHLogger.png</file> | |
4 | + <file>Play.png</file> | |
5 | + <file>Stop.png</file> | |
6 | + </qresource> | |
7 | +</RCC> |
@@ -149,6 +149,7 @@ void MainWindow::on_pushButton_LogStart_clicked() | ||
149 | 149 | |
150 | 150 | logging = false; |
151 | 151 | ui->pushButton_LogStart->setText(tr("Log Start")); |
152 | + ui->pushButton_LogStart->setIcon(QIcon(":/Images/Play.png")); | |
152 | 153 | ui->label_LogState->setText(tr("LogEnded: ") + QDateTime::currentDateTime().toString("yyyy/MM/dd hh:mm:ss")); |
153 | 154 | ui->label_LogLapsedTime->setText(""); |
154 | 155 | } else { |
@@ -162,6 +163,7 @@ void MainWindow::on_pushButton_LogStart_clicked() | ||
162 | 163 | |
163 | 164 | logging = true; |
164 | 165 | ui->pushButton_LogStart->setText(tr("Log Stop")); |
166 | + ui->pushButton_LogStart->setIcon(QIcon(":/Images/Stop.png")); | |
165 | 167 | logstart_time = QDateTime::currentDateTime(); |
166 | 168 | ui->label_LogState->setText(tr("LogStarted: ") + logstart_time.toString("yyyy/MM/dd hh:mm:ss")); |
167 | 169 |
@@ -10,6 +10,18 @@ | ||
10 | 10 | <height>370</height> |
11 | 11 | </rect> |
12 | 12 | </property> |
13 | + <property name="minimumSize"> | |
14 | + <size> | |
15 | + <width>643</width> | |
16 | + <height>370</height> | |
17 | + </size> | |
18 | + </property> | |
19 | + <property name="maximumSize"> | |
20 | + <size> | |
21 | + <width>643</width> | |
22 | + <height>370</height> | |
23 | + </size> | |
24 | + </property> | |
13 | 25 | <property name="windowTitle"> |
14 | 26 | <string>QtUSBRH Logger for win32</string> |
15 | 27 | </property> |
@@ -155,6 +167,17 @@ | ||
155 | 167 | <property name="text"> |
156 | 168 | <string>Log Start</string> |
157 | 169 | </property> |
170 | + <property name="icon"> | |
171 | + <iconset resource="QtUSBRH-Logger-win32.qrc"> | |
172 | + <normaloff>:/Images/Play.png</normaloff> | |
173 | + <normalon>:/Images/Stop.png</normalon>:/Images/Play.png</iconset> | |
174 | + </property> | |
175 | + <property name="iconSize"> | |
176 | + <size> | |
177 | + <width>24</width> | |
178 | + <height>24</height> | |
179 | + </size> | |
180 | + </property> | |
158 | 181 | </widget> |
159 | 182 | <widget class="QLabel" name="label_Max"> |
160 | 183 | <property name="geometry"> |