diff options
Diffstat (limited to 'rbutil/rbutilqt/installthemes.cpp')
-rw-r--r-- | rbutil/rbutilqt/installthemes.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/installthemes.cpp b/rbutil/rbutilqt/installthemes.cpp index 9c98ede32a..cf04280654 100644 --- a/rbutil/rbutilqt/installthemes.cpp +++ b/rbutil/rbutilqt/installthemes.cpp | |||
@@ -153,7 +153,7 @@ void ThemesInstallWindow::downloadDone(bool error) | |||
153 | void ThemesInstallWindow::updateDetails(int row) | 153 | void ThemesInstallWindow::updateDetails(int row) |
154 | { | 154 | { |
155 | if(row == currentItem) return; | 155 | if(row == currentItem) return; |
156 | 156 | ||
157 | currentItem = row; | 157 | currentItem = row; |
158 | qDebug() << "updateDetails(int) =" << row; | 158 | qDebug() << "updateDetails(int) =" << row; |
159 | QSettings iniDetails(themesInfo.fileName(), QSettings::IniFormat, this); | 159 | QSettings iniDetails(themesInfo.fileName(), QSettings::IniFormat, this); |
@@ -161,7 +161,7 @@ void ThemesInstallWindow::updateDetails(int row) | |||
161 | .arg(ui.listThemes->item(row)->data(Qt::DisplayRole).toString())); | 161 | .arg(ui.listThemes->item(row)->data(Qt::DisplayRole).toString())); |
162 | ui.themePreview->clear(); | 162 | ui.themePreview->clear(); |
163 | ui.themePreview->setText(tr("fetching preview ...")); | 163 | ui.themePreview->setText(tr("fetching preview ...")); |
164 | 164 | ||
165 | int size = 0; | 165 | int size = 0; |
166 | 166 | ||
167 | iniDetails.beginGroup(ui.listThemes->item(row)->data(Qt::UserRole).toString()); | 167 | iniDetails.beginGroup(ui.listThemes->item(row)->data(Qt::UserRole).toString()); |
@@ -184,7 +184,7 @@ void ThemesInstallWindow::updateDetails(int row) | |||
184 | text = tr("<b>Author:</b> %1<hr/>").arg(iniDetails.value("author", tr("unknown")).toString()); | 184 | text = tr("<b>Author:</b> %1<hr/>").arg(iniDetails.value("author", tr("unknown")).toString()); |
185 | text += tr("<b>Version:</b> %1<hr/>").arg(iniDetails.value("version", tr("unknown")).toString()); | 185 | text += tr("<b>Version:</b> %1<hr/>").arg(iniDetails.value("version", tr("unknown")).toString()); |
186 | text += tr("<b>Description:</b> %1<hr/>").arg(iniDetails.value("about", tr("no description")).toString()); | 186 | text += tr("<b>Description:</b> %1<hr/>").arg(iniDetails.value("about", tr("no description")).toString()); |
187 | 187 | ||
188 | ui.themeDescription->setHtml(text); | 188 | ui.themeDescription->setHtml(text); |
189 | iniDetails.endGroup(); | 189 | iniDetails.endGroup(); |
190 | 190 | ||
@@ -211,7 +211,7 @@ void ThemesInstallWindow::updateImage(bool error) | |||
211 | { | 211 | { |
212 | qDebug() << "updateImage(bool) =" << error; | 212 | qDebug() << "updateImage(bool) =" << error; |
213 | if(error) return; | 213 | if(error) return; |
214 | 214 | ||
215 | QPixmap p; | 215 | QPixmap p; |
216 | if(!error) { | 216 | if(!error) { |
217 | imgData = igetter.readAll(); | 217 | imgData = igetter.readAll(); |
@@ -221,7 +221,7 @@ void ThemesInstallWindow::updateImage(bool error) | |||
221 | ui.themePreview->clear(); | 221 | ui.themePreview->clear(); |
222 | ui.themePreview->setText(tr("no theme preview")); | 222 | ui.themePreview->setText(tr("no theme preview")); |
223 | } | 223 | } |
224 | else | 224 | else |
225 | ui.themePreview->setPixmap(p); | 225 | ui.themePreview->setPixmap(p); |
226 | } | 226 | } |
227 | } | 227 | } |
@@ -302,7 +302,7 @@ void ThemesInstallWindow::accept() | |||
302 | iniDetails.endGroup(); | 302 | iniDetails.endGroup(); |
303 | } | 303 | } |
304 | qDebug() << "installing themes:" << themes; | 304 | qDebug() << "installing themes:" << themes; |
305 | 305 | ||
306 | logger = new ProgressLoggerGui(this); | 306 | logger = new ProgressLoggerGui(this); |
307 | logger->show(); | 307 | logger->show(); |
308 | QString mountPoint = userSettings->value("mountpoint").toString(); | 308 | QString mountPoint = userSettings->value("mountpoint").toString(); |