mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
- COSMETIC: Redesigned program preferences
- COSMETIC: Updated icons set
This commit is contained in:
@@ -236,6 +236,8 @@ options_imp::options_imp(QWidget *parent):QDialog(parent){
|
||||
checkSystrayBalloons->setChecked(false);
|
||||
checkSystrayBalloons->setEnabled(false);
|
||||
}
|
||||
// Tab selection mecanism
|
||||
connect(tabSelection, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*)));
|
||||
}
|
||||
|
||||
// Main destructor
|
||||
@@ -243,6 +245,12 @@ options_imp::~options_imp(){
|
||||
qDebug("-> destructing Options");
|
||||
}
|
||||
|
||||
void options_imp::changePage(QListWidgetItem *current, QListWidgetItem *previous) {
|
||||
if (!current)
|
||||
current = previous;
|
||||
tabOption->setCurrentIndex(tabSelection->row(current));
|
||||
}
|
||||
|
||||
void options_imp::useStyle(){
|
||||
int style = getStyle();
|
||||
switch(style) {
|
||||
|
||||
Reference in New Issue
Block a user