Skip to content

Commit

Permalink
renamed slots in preferencesdialog, so that they get autoconnected
Browse files Browse the repository at this point in the history
resolves these warnings:

Warning: QMetaObject::connectSlotsByName: No matching signal for
on_comboBox_ui_style_type(int)
...
  • Loading branch information
zebastian committed Nov 29, 2015
1 parent 16bc90f commit 7d4d686
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
7 changes: 2 additions & 5 deletions mandelbulber2/qt/preferencesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ cPreferencesDialog::cPreferencesDialog(QWidget *parent) :
int index = ui->comboboxLanguage->findText(systemData.locale.name());
ui->comboboxLanguage->setCurrentIndex(index);
}

connect(ui->comboBox_ui_style_type, SIGNAL(currentIndexChanged(int)), this, SLOT(on_comboBox_ui_style_type(int)));
connect(ui->comboBox_ui_skin, SIGNAL(currentIndexChanged(int)), this, SLOT(on_comboBox_ui_skin(int)));
}

cPreferencesDialog::~cPreferencesDialog()
Expand Down Expand Up @@ -103,13 +100,13 @@ void cPreferencesDialog::on_pushButton_clear_thumbnail_cache_clicked()
}
}

void cPreferencesDialog::on_comboBox_ui_style_type(int index)
void cPreferencesDialog::on_comboBox_ui_style_type_currentIndexChanged(int index)
{
gPar->Set<int>("ui_style_type", index);
UpdateUIStyle();
}

void cPreferencesDialog::on_comboBox_ui_skin(int index)
void cPreferencesDialog::on_comboBox_ui_skin_currentIndexChanged(int index)
{
gPar->Set<int>("ui_skin", index);
UpdateUISkin();
Expand Down
31 changes: 12 additions & 19 deletions mandelbulber2/qt/preferencesdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,28 @@
#include "../src/global_data.hpp"

namespace Ui {
class cPreferencesDialog;
class cPreferencesDialog;
}

class cPreferencesDialog : public QDialog
{
Q_OBJECT
Q_OBJECT

public:
explicit cPreferencesDialog(QWidget *parent = 0);
~cPreferencesDialog();
explicit cPreferencesDialog(QWidget *parent = 0);
~cPreferencesDialog();

private slots:
void on_buttonBox_accepted();

void on_pushButton_select_image_path_clicked();

void on_pushButton_select_settings_path_clicked();

void on_pushButton_select_textures_path_clicked();

void on_pushButton_clear_thumbnail_cache_clicked();

void on_comboBox_ui_style_type(int index);

void on_comboBox_ui_skin(int index);

void on_buttonBox_accepted();
void on_pushButton_select_image_path_clicked();
void on_pushButton_select_settings_path_clicked();
void on_pushButton_select_textures_path_clicked();
void on_pushButton_clear_thumbnail_cache_clicked();
void on_comboBox_ui_style_type_currentIndexChanged(int index);
void on_comboBox_ui_skin_currentIndexChanged(int index);

private:
Ui::cPreferencesDialog *ui;
Ui::cPreferencesDialog *ui;
};

#endif // PREFERENCESDIALOG_H

0 comments on commit 7d4d686

Please sign in to comment.