|
|
@ -291,11 +291,7 @@ void options_imp::changePage(QListWidgetItem *current, QListWidgetItem *previous |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void options_imp::useStyle() { |
|
|
|
void options_imp::useStyle() { |
|
|
|
if(comboStyle->currentIndex() == 0) { |
|
|
|
QApplication::setStyle(QStyleFactory::create(comboStyle->itemText(comboStyle->currentIndex()))); |
|
|
|
QApplication::setStyle(Preferences::getDefaultStyle()); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
QApplication::setStyle(QStyleFactory::create(comboStyle->itemText(comboStyle->currentIndex()))); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(QApplication::style()->objectName() == "cleanlooks") { |
|
|
|
if(QApplication::style()->objectName() == "cleanlooks") { |
|
|
|
// Force our own cleanlooks style
|
|
|
|
// Force our own cleanlooks style
|
|
|
|
qDebug("Forcing our own cleanlooks style"); |
|
|
|
qDebug("Forcing our own cleanlooks style"); |
|
|
@ -539,18 +535,13 @@ int options_imp::getHTTPProxyType() const { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QString options_imp::getStyle() const{ |
|
|
|
QString options_imp::getStyle() const{ |
|
|
|
if(comboStyle->currentIndex() == 0) |
|
|
|
return comboStyle->itemText(comboStyle->currentIndex()); |
|
|
|
return "default"; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
return comboStyle->itemText(comboStyle->currentIndex()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void options_imp::setStyle(QString style) { |
|
|
|
void options_imp::setStyle(QString style) { |
|
|
|
if(style != "default") { |
|
|
|
int index = comboStyle->findText(style, Qt::MatchFixedString); |
|
|
|
int index = comboStyle->findText(style); |
|
|
|
if(index > 0) |
|
|
|
if(index > 0) |
|
|
|
comboStyle->setCurrentIndex(index); |
|
|
|
comboStyle->setCurrentIndex(index); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool options_imp::isHTTPProxyAuthEnabled() const{ |
|
|
|
bool options_imp::isHTTPProxyAuthEnabled() const{ |
|
|
|