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

List:       kde-commits
Subject:    [kdesvn/frameworks] src/svnfrontend: Remove now superfluous createdlg.h
From:       Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date:       2016-03-31 19:21:07
Message-ID: E1ali9T-0005rB-9f () scm ! kde ! org
[Download RAW message or body]

Git commit 0d0f29a297d28eb7dd446d4a22796832ac470f71 by Christian Ehrlicher.
Committed on 27/03/2016 at 16:20.
Pushed by chehrlic into branch 'frameworks'.

Remove now superfluous createdlg.h

M  +0    -1    src/svnfrontend/CMakeLists.txt
M  +0    -1    src/svnfrontend/database/dbsettings.cpp
D  +0    -71   src/svnfrontend/fronthelpers/createdlg.h
M  +0    -1    src/svnfrontend/maintreewidget.cpp
M  +0    -1    src/svnfrontend/svnactions.cpp

http://commits.kde.org/kdesvn/0d0f29a297d28eb7dd446d4a22796832ac470f71

diff --git a/src/svnfrontend/CMakeLists.txt b/src/svnfrontend/CMakeLists.txt
index de0bb6c..d4eacdc 100644
--- a/src/svnfrontend/CMakeLists.txt
+++ b/src/svnfrontend/CMakeLists.txt
@@ -38,7 +38,6 @@ set(svnfrontendsrc
     editpropsdlg.cpp
     fronthelpers/checkoutinfo_impl.cpp
     fronthelpers/checkoutinfo_impl.h
-    fronthelpers/createdlg.h
     fronthelpers/cursorstack.h
     fronthelpers/fronthelpers.h
     fronthelpers/kmultilinedelegate.cpp
diff --git a/src/svnfrontend/database/dbsettings.cpp \
b/src/svnfrontend/database/dbsettings.cpp index 955a3b1..903f3ca 100644
--- a/src/svnfrontend/database/dbsettings.cpp
+++ b/src/svnfrontend/database/dbsettings.cpp
@@ -25,7 +25,6 @@
 #include "ui_dbsettings.h"
 
 #include "svnqt/cache/ReposConfig.h"
-#include "svnfrontend/fronthelpers/createdlg.h"
 #include <QPointer>
 
 DbSettings::DbSettings(const QString &repository, QWidget *parent)
diff --git a/src/svnfrontend/fronthelpers/createdlg.h \
b/src/svnfrontend/fronthelpers/createdlg.h deleted file mode 100644
index ac3f240..0000000
--- a/src/svnfrontend/fronthelpers/createdlg.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2008 by Rajko Albrecht  ral@alwins-world.de             *
- *   http://kdesvn.alwins-world.de/                                        *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
- ***************************************************************************/
-#ifndef CREATEDLG_H
-#define CREATEDLG_H
-
-#include "settings/kdesvnsettings.h"
-#include <kdialog.h>
-#include <kconfig.h>
-#include <kvbox.h>
-
-#include <QApplication>
-#include <QString>
-#include <QPointer>
-#include "helpers/windowgeometryhelper.h"
-
-template<class T>
-inline QPointer<KDialog> createDialog(T **ptr, const QString &_head, const \
                KDialog::ButtonCodes &_buttons,
-                                      bool showHelp = false,
-                                      bool modal = true, const KGuiItem &u1 = \
                KGuiItem())
-{
-    KDialog::ButtonCodes buttons = _buttons;
-    if (showHelp) {
-        buttons = buttons | KDialog::Help;
-    }
-    if (!u1.text().isEmpty()) {
-        buttons = buttons | KDialog::User1;
-    }
-    QPointer<KDialog> dlg(new KDialog(modal ? QApplication::activeModalWidget() : \
                0));
-    dlg->setWindowTitle(_head);
-    dlg->setButtons(buttons);
-    if (!u1.text().isEmpty()) {
-        dlg->setButtonGuiItem(KDialog::User1, u1);
-    }
-
-    QWidget *Dialog1Layout = new KVBox(dlg);
-    dlg->setMainWidget(Dialog1Layout);
-    *ptr = new T(Dialog1Layout);
-    return dlg;
-}
-
-
-template<class T>
-inline QPointer<KDialog> createOkDialog(T **ptr, const QString &_head, bool OkCancel \
                = false,
-                                        bool showHelp = false,
-                                        bool modal = true, const KGuiItem &u1 = \
                KGuiItem())
-{
-    KDialog::ButtonCodes buttons = KDialog::Ok;
-    if (OkCancel) {
-        buttons = buttons | KDialog::Cancel;
-    }
-    return createDialog(ptr, _head, buttons, showHelp, modal, u1);
-}
-
-#endif
diff --git a/src/svnfrontend/maintreewidget.cpp b/src/svnfrontend/maintreewidget.cpp
index 1ba07b4..189ad47 100644
--- a/src/svnfrontend/maintreewidget.cpp
+++ b/src/svnfrontend/maintreewidget.cpp
@@ -34,7 +34,6 @@
 #include "helpers/sshagent.h"
 #include "svnqt/url.h"
 #include "svnqt/svnqttypes.h"
-#include "fronthelpers/createdlg.h"
 #include "fronthelpers/rangeinput_impl.h"
 #include "fronthelpers/widgetblockstack.h"
 #include "fronthelpers/fronthelpers.h"
diff --git a/src/svnfrontend/svnactions.cpp b/src/svnfrontend/svnactions.cpp
index e28ef14..0f07e6f 100644
--- a/src/svnfrontend/svnactions.cpp
+++ b/src/svnfrontend/svnactions.cpp
@@ -53,7 +53,6 @@
 #include "svnqt/cache/ReposLog.h"
 #include "svnqt/cache/ReposConfig.h"
 
-#include "fronthelpers/createdlg.h"
 #include "fronthelpers/watchedprocess.h"
 
 #include "helpers/sub2qt.h"


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

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