diff --git a/src/libs/utils/filewizardpage.cpp b/src/libs/utils/filewizardpage.cpp index cceb06ece3abef16b622c22afbdd18a9cd56b537..59f1bbc56bafe22afbf1d997d05a147dc7e97c3b 100644 --- a/src/libs/utils/filewizardpage.cpp +++ b/src/libs/utils/filewizardpage.cpp @@ -88,6 +88,7 @@ void FileWizardPage::setName(const QString &name) void FileWizardPage::changeEvent(QEvent *e) { + QWizardPage::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: m_d->m_ui.retranslateUi(this); diff --git a/src/libs/utils/projectintropage.cpp b/src/libs/utils/projectintropage.cpp index c10d6e07a8e8df61a97686ef12cf932d4e6a4f0b..085cafe7bf04a2980617535396cb3d161fbf9207 100644 --- a/src/libs/utils/projectintropage.cpp +++ b/src/libs/utils/projectintropage.cpp @@ -113,6 +113,7 @@ void ProjectIntroPage::setDescription(const QString &description) void ProjectIntroPage::changeEvent(QEvent *e) { + QWizardPage::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: m_d->m_ui.retranslateUi(this); diff --git a/src/libs/utils/submiteditorwidget.cpp b/src/libs/utils/submiteditorwidget.cpp index 1f27b463ece793ec3eaf584bfa34fca36fb54f5b..a047682b81502b4fd8d98d434487768b05657cb0 100644 --- a/src/libs/utils/submiteditorwidget.cpp +++ b/src/libs/utils/submiteditorwidget.cpp @@ -366,6 +366,7 @@ bool SubmitEditorWidget::hasCheckedFiles() const void SubmitEditorWidget::changeEvent(QEvent *e) { + QWidget::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: m_d->m_ui.retranslateUi(this); diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index 5e2914df46d10bfd43b4a220146c8f019a9e2578..822636d5359413d5488daf4edf4fb869c1eb02ef 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -986,6 +986,7 @@ void MainWindow::removeContextObject(IContext *context) void MainWindow::changeEvent(QEvent *e) { + QMainWindow::changeEvent(e); if (e->type() == QEvent::ActivationChange) { if (isActiveWindow()) { if (debugMainWindow) diff --git a/src/plugins/git/branchdialog.cpp b/src/plugins/git/branchdialog.cpp index 5a1aa5d00d635f9ce95ab96c690b22da64cfd577..f348ac0188165eb92e9936119611748c42aea130 100644 --- a/src/plugins/git/branchdialog.cpp +++ b/src/plugins/git/branchdialog.cpp @@ -258,6 +258,7 @@ void BranchDialog::slotRemoteBranchActivated(const QModelIndex &i) void BranchDialog::changeEvent(QEvent *e) { + QDialog::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: m_ui->retranslateUi(this); diff --git a/src/plugins/git/branchdialog.h b/src/plugins/git/branchdialog.h index 5656c9e5c67c8149ccb6ebcf1255cddd0796abd1..dcad691d6048f45348930015cf75e263615a64a6 100644 --- a/src/plugins/git/branchdialog.h +++ b/src/plugins/git/branchdialog.h @@ -3,64 +3,68 @@ #include <QtGui/QDialog> - QT_BEGIN_NAMESPACE class QPushButton; class QModelIndex; QT_END_NAMESPACE namespace Git { - namespace Internal { - namespace Ui { - class BranchDialog; - } - - class GitClient; - class LocalBranchModel; - class RemoteBranchModel; - - /* Branch dialog: Display a list of local branches at the top - * and remote branches below. Offers to checkout/delete local - * branches. - * TODO: Add new branch (optionally tracking a remote one). - * How to find out that a local branch is a tracking one? */ - class BranchDialog : public QDialog { - Q_OBJECT - Q_DISABLE_COPY(BranchDialog) - public: - explicit BranchDialog(QWidget *parent = 0); - - bool init(GitClient *client, const QString &workingDirectory, QString *errorMessage); - - virtual ~BranchDialog(); - - protected: - virtual void changeEvent(QEvent *e); - - private slots: - void slotEnableButtons(); - void slotCheckoutSelectedBranch(); - void slotDeleteSelectedBranch(); - void slotLocalBranchActivated(); - void slotRemoteBranchActivated(const QModelIndex &); - void slotCreateLocalBranch(const QString &branchName); - - private: - bool ask(const QString &title, const QString &what, bool defaultButton); - void selectLocalBranch(const QString &b); - - int selectedLocalBranchIndex() const; - int selectedRemoteBranchIndex() const; - - GitClient *m_client; - Ui::BranchDialog *m_ui; - QPushButton *m_checkoutButton; - QPushButton *m_deleteButton; - - LocalBranchModel *m_localModel; - RemoteBranchModel *m_remoteModel; - QString m_repoDirectory; - }; - } // namespace Internal +namespace Internal { + +namespace Ui { +class BranchDialog; +} + +class GitClient; +class LocalBranchModel; +class RemoteBranchModel; + +/** + * Branch dialog. Displays a list of local branches at the top and remote + * branches below. Offers to checkout/delete local branches. + * + * TODO: Add new branch (optionally tracking a remote one). + * How to find out that a local branch is a tracking one? + */ +class BranchDialog : public QDialog { + Q_OBJECT + Q_DISABLE_COPY(BranchDialog) +public: + explicit BranchDialog(QWidget *parent = 0); + + bool init(GitClient *client, const QString &workingDirectory, QString *errorMessage); + + virtual ~BranchDialog(); + +protected: + virtual void changeEvent(QEvent *e); + +private slots: + void slotEnableButtons(); + void slotCheckoutSelectedBranch(); + void slotDeleteSelectedBranch(); + void slotLocalBranchActivated(); + void slotRemoteBranchActivated(const QModelIndex &); + void slotCreateLocalBranch(const QString &branchName); + +private: + bool ask(const QString &title, const QString &what, bool defaultButton); + void selectLocalBranch(const QString &b); + + int selectedLocalBranchIndex() const; + int selectedRemoteBranchIndex() const; + + GitClient *m_client; + Ui::BranchDialog *m_ui; + QPushButton *m_checkoutButton; + QPushButton *m_deleteButton; + + LocalBranchModel *m_localModel; + RemoteBranchModel *m_remoteModel; + QString m_repoDirectory; +}; + +} // namespace Internal } // namespace Git + #endif // BRANCHDIALOG_H diff --git a/src/plugins/projectexplorer/buildstepspage.cpp b/src/plugins/projectexplorer/buildstepspage.cpp index 16c2a2d415210c155f97822fad4dc8c6f63a70b8..bcb8945f6214435af953c8e38f41d8d85ec34f9b 100644 --- a/src/plugins/projectexplorer/buildstepspage.cpp +++ b/src/plugins/projectexplorer/buildstepspage.cpp @@ -236,6 +236,7 @@ void BuildStepsPage::downBuildStep() void BuildStepsPage::changeEvent(QEvent *e) { + BuildStepConfigWidget::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: m_ui->retranslateUi(this); diff --git a/src/plugins/projectexplorer/projectwizardpage.cpp b/src/plugins/projectexplorer/projectwizardpage.cpp index 36eaab884bc38c2638b28b0aaca6deb56e582a8d..2c294e898817b64e282680ede4501ac4a5b8c3f0 100644 --- a/src/plugins/projectexplorer/projectwizardpage.cpp +++ b/src/plugins/projectexplorer/projectwizardpage.cpp @@ -95,6 +95,7 @@ void ProjectWizardPage::setAddToVersionControlEnabled(bool b) void ProjectWizardPage::changeEvent(QEvent *e) { + QWizardPage::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: m_ui->retranslateUi(this); diff --git a/src/plugins/projectexplorer/removefiledialog.cpp b/src/plugins/projectexplorer/removefiledialog.cpp index 8e6964aa9c8ab865195ca2a62459130560232636..20e7eb8333d04ccbfc78cd9c83552fe9fbaddffd 100644 --- a/src/plugins/projectexplorer/removefiledialog.cpp +++ b/src/plugins/projectexplorer/removefiledialog.cpp @@ -55,6 +55,7 @@ bool RemoveFileDialog::isDeleteFileChecked() const void RemoveFileDialog::changeEvent(QEvent *e) { + QDialog::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: m_ui->retranslateUi(this);