SHA256
1
0
forked from pool/krename
Files
krename/remove-gplv2-code.diff
Christophe Giboudeaux d1455f21cc Accepting request 662408 from home:wolfi323:branches:KDE:Extra
- Add upstream patches to add support for exiv2-0.27:
  * 0001-Use-cmakedefine01-instead-of-macro_bool_to_01.patch
  * 0002-Fix-building-against-exiv2-0.27.patch
  * 0003-Fix-the-previous-commits-and-the-build-with-exiv2-0..patch
- Add lower-minimum-cmake-version.patch for Leap 42.3 to make it
  build with the older cmake version (3.5.2)
- Update servicemenus-files.patch and remove-gplv2-code.diff to
  conform to -p1 and use "%autopatch -p1" to apply all patches
- Add missing Qt5Test build requirement
- Change URL to userbase.kde.org, krename.net is a bit outdated
- Run spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/662408
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/krename?expand=0&rev=9
2019-01-02 11:40:27 +00:00

68 lines
1.4 KiB
Diff

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -47,7 +47,6 @@
krenametest.cpp
krenametokensorter.cpp
krenamewindow.cpp
- modeltest.cpp
numberdialog.cpp
insertpartfilenamedlg.cpp
threadedlister.cpp
--- a/src/krenameimpl.cpp
+++ b/src/krenameimpl.cpp
@@ -31,8 +31,6 @@
#include "threadedlister.h"
#include "tokenhelpdialog.h"
-#include "modeltest.h"
-
#include <kconfig.h>
#include <kiconloader.h>
#include <KFileWidget>
@@ -218,10 +216,6 @@
{
bool gotFilenames = false;
- if (parser->isSet("test")) {
- QTimer::singleShot(0, this, SLOT(selfTest()));
- }
-
// Add all recursive directoris
QList<QUrl> recursiveList;
QStringList directories = parser->values("r");
@@ -374,20 +368,6 @@
}
}
-void KRenameImpl::selfTest()
-{
- KRenameTest *test = new KRenameTest();
- test->startTest();
-
- new ModelTest(m_model);
- //new ModelTest( m_previewModel );
-
- // Make _really_ sure it comes to front
- test->show();
- test->raise();
- test->activateWindow();
-}
-
void KRenameImpl::slotUpdateCount()
{
m_window->setCount(m_vector.size());
--- a/src/krenameimpl.h
+++ b/src/krenameimpl.h
@@ -100,11 +100,6 @@
*/
void saveConfig();
- /** Start KRename's selftest:
- * I.e several unit tests.
- */
- void selfTest();
-
/** Called when the user clicks the "Add..." button.
* open a dialog to select files for adding to KRename.
*/