summaryrefslogtreecommitdiffstats
path: root/tools/designer/src/lib/shared/qdesigner_promotiondialog_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-28 15:58:25 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-01-28 15:58:25 (GMT)
commit7d66d263b93164ddc501050d07ddcc198921da8c (patch)
tree7f62f894cd301b99fc312a195749ba12f87b3401 /tools/designer/src/lib/shared/qdesigner_promotiondialog_p.h
parent2a82051815a3c8bb8fbb2b58dff5653c80d6fa33 (diff)
downloadQt-7d66d263b93164ddc501050d07ddcc198921da8c.zip
Qt-7d66d263b93164ddc501050d07ddcc198921da8c.tar.gz
Qt-7d66d263b93164ddc501050d07ddcc198921da8c.tar.bz2
Designer: Fix source code scanning issues.
Fix spelling errors, foreach()/QString usage, explicit constructors. Reviewed-By: Joerg Bornemann <joerg.bornemann@trolltech.com>
Diffstat (limited to 'tools/designer/src/lib/shared/qdesigner_promotiondialog_p.h')
-rw-r--r--tools/designer/src/lib/shared/qdesigner_promotiondialog_p.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/designer/src/lib/shared/qdesigner_promotiondialog_p.h b/tools/designer/src/lib/shared/qdesigner_promotiondialog_p.h
index d1e407d..1e63d81 100644
--- a/tools/designer/src/lib/shared/qdesigner_promotiondialog_p.h
+++ b/tools/designer/src/lib/shared/qdesigner_promotiondialog_p.h
@@ -80,9 +80,9 @@ namespace qdesigner_internal {
class NewPromotedClassPanel : public QGroupBox {
Q_OBJECT
public:
- NewPromotedClassPanel(const QStringList &baseClasses,
- int selectedBaseClass = -1,
- QWidget *parent = 0);
+ explicit NewPromotedClassPanel(const QStringList &baseClasses,
+ int selectedBaseClass = -1,
+ QWidget *parent = 0);
signals:
void newPromotedClass(const PromotionParameters &, bool *ok);
@@ -114,10 +114,10 @@ namespace qdesigner_internal {
public:
enum Mode { ModeEdit, ModeEditChooseClass };
- QDesignerPromotionDialog(QDesignerFormEditorInterface *core,
- QWidget *parent = 0,
- const QString &promotableWidgetClassName = QString(),
- QString *promoteTo = 0);
+ explicit QDesignerPromotionDialog(QDesignerFormEditorInterface *core,
+ QWidget *parent = 0,
+ const QString &promotableWidgetClassName = QString(),
+ QString *promoteTo = 0);
// Return an alphabetically ordered list of base class names for adding new classes.
static const QStringList &baseClassNames(const QDesignerPromotionInterface *promotion);