[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    [Patch] KEditToolbar/Additional Parameters
From:       Peter Putzer <pputzer () edu ! uni-klu ! ac ! at>
Date:       2000-05-31 8:50:07
[Download RAW message or body]

This patch adds the usual QWidget* parent and const char* name parameters
to the constructors of KEditToolbar.

If ok I will commit.

bye,
Peter

["kedittoolbar.diff" (TEXT/PLAIN)]

Index: kedittoolbar.h
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kedittoolbar.h,v
retrieving revision 1.8
diff -u -3 -p -r1.8 kedittoolbar.h
--- kedittoolbar.h	2000/04/05 22:19:44	1.8
+++ kedittoolbar.h	2000/05/31 08:45:58
@@ -104,14 +104,17 @@ public:
    * @param xmlfile The application's local resource file
    * @param global If true, then the global resource file will also
    *               be parsed
+   * @param parent The parent of the dialog.
+   * @param name An internal name.
    */
   KEditToolbar(KActionCollection *collection,
-               const QString& xmlfile = QString::null, bool global = true);
+               const QString& xmlfile = QString::null, bool global = true,
+			   QWidget* parent = 0, const char* name = 0);
 
   /**
    * Constructor for KParts based apps.
    *
-   * The one and only parameter, @ref #factory, is a pointer to the
+   * The main parameter, @ref #factory, is a pointer to the
    * XML GUI factory object for your application.  It contains a list
    * of all of the GUI clients (along with the action collections and
    * xml files) and the toolbar editor uses that.
@@ -124,8 +127,10 @@ public:
    * </pre>
    *
    * @param factory Your application's factory object
+   * @param parent The usual parent for the dialog.
+   * @param name An internal name.
    */
-  KEditToolbar(KXMLGUIFactory* factory);
+  KEditToolbar(KXMLGUIFactory* factory, QWidget* parent = 0, const char* name = 0);
 
 protected slots:
   /**
Index: kedittoolbar.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kedittoolbar.cpp,v
retrieving revision 1.22
diff -u -3 -p -r1.22 kedittoolbar.cpp
--- kedittoolbar.cpp	2000/05/17 14:12:11	1.22
+++ kedittoolbar.cpp	2000/05/31 08:45:59
@@ -193,8 +193,8 @@ public:
 };
 
 KEditToolbar::KEditToolbar(KActionCollection *collection, const QString& file,
-                           bool global)
-    : KDialogBase(Swallow, i18n("Configure Toolbars"), Ok|Cancel, Cancel),
+                           bool global, QWidget* parent, const char* name)
+    : KDialogBase(Swallow, i18n("Configure Toolbars"), Ok|Cancel, Cancel, parent, name),
       m_widget(new KEditToolbarWidget(collection, file, global, this))
 {
     setMainWidget(m_widget);
@@ -204,8 +204,8 @@ KEditToolbar::KEditToolbar(KActionCollec
     enableButtonOK(false);
 }
 
-KEditToolbar::KEditToolbar(KXMLGUIFactory* factory)
-    : KDialogBase(Swallow, i18n("Configure Toolbars"), Ok|Cancel, Cancel),
+KEditToolbar::KEditToolbar(KXMLGUIFactory* factory, QWidget* parent, const char* name)
+    : KDialogBase(Swallow, i18n("Configure Toolbars"), Ok|Cancel, Cancel, parent, name),
       m_widget(new KEditToolbarWidget(factory, this))
 {
     setMainWidget(m_widget);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic