Remove duplicated code
This commit is contained in:
@@ -9,17 +9,7 @@
|
||||
splashLibrary::splashLibrary(QWidget *parent, QString * fileName) : QDialog(parent), ui(new Ui::splashLibrary) {
|
||||
splashFileName = fileName;
|
||||
ui->setupUi(this);
|
||||
QSettings settings("companion", "companion");
|
||||
int theme_set=settings.value("theme", 1).toInt();
|
||||
QString Theme;
|
||||
switch(theme_set) {
|
||||
case 0:
|
||||
Theme="classic";
|
||||
break;
|
||||
default:
|
||||
Theme="monochrome";
|
||||
break;
|
||||
}
|
||||
QString Theme=getTheme();
|
||||
QIcon NextIcon;
|
||||
populate_icon(&NextIcon,Theme,"arrow-right.png");
|
||||
QIcon PrevIcon;
|
||||
|
||||
Reference in New Issue
Block a user