]> Git trees. - libqmvoc.git/commitdiff
change the order of the args of GlossaryDialog constructor to be a bit more Qt4-ish
authorPino Toscano <pino@kde.org>
Tue, 13 Feb 2007 14:55:40 +0000 (14:55 +0000)
committerPino Toscano <pino@kde.org>
Tue, 13 Feb 2007 14:55:40 +0000 (14:55 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633220

kdeeduui/kdeeduglossary.cpp
kdeeduui/kdeeduglossary.h

index 779b0bed272d30a7ce0ff302f2e7b4a75c216a71..12679a375082b0561ab2417f79868e9251fd106a 100644 (file)
@@ -261,7 +261,7 @@ QList<GlossaryItem*> Glossary::readItems( QDomDocument &itemDocument )
        return list;
 }
 
-GlossaryDialog::GlossaryDialog( bool folded, QWidget *parent )
+GlossaryDialog::GlossaryDialog( QWidget *parent, bool folded )
     : KDialog( parent ), d( new Private( this ) )
 {
        setCaption( i18n( "Glossary" ) );
index 0241b8471485f77eba648ee5fda2fe460acb85c1..afa159b9f64bc34e2ee0e550c7ce1ade5bc1ea3e 100644 (file)
@@ -245,12 +245,13 @@ class KDEEDUUI_EXPORT GlossaryDialog : public KDialog
                /**
                 * Creates a new dialog for a glossary.
                 *
+                * @param parent the parent of the new dialog
                 * @param folded whether to fold the various items in subtrees depending on the
                 * first letter of every item
-                * @param parent the parent of the new dialog
                 */
-               GlossaryDialog( bool folded = true, QWidget *parent = 0 );
-               ~GlossaryDialog();
+               explicit GlossaryDialog( QWidget *parent = 0, bool folded = true );
+
+               virtual ~GlossaryDialog();
 
                /**
                 * Add a new glossary.