OSDN Git Service

about-distro: cleanup
authorIvailo Monev <xakepa10@gmail.com>
Mon, 16 Mar 2015 13:49:56 +0000 (13:49 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 16 Mar 2015 13:49:56 +0000 (13:49 +0000)
about-distro/src/CMakeLists.txt
about-distro/src/Module.cpp
about-distro/src/Module.h
about-distro/src/Version.h.cmake [deleted file]

index 9c98497..5f11201 100644 (file)
@@ -1,4 +1,3 @@
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/Version.h)
 include_directories(${CMAKE_CURRENT_BINARY_DIR})
 
 set(kcm_SRCS
index bddba90..4bb0845 100644 (file)
@@ -63,7 +63,7 @@ Module::Module(QWidget *parent, const QVariantList &args) :
 {
     KAboutData *about = new KAboutData("kcm-about-distro", 0,
                                        ki18n("About Distribution"),
-                                       global_s_versionStringFull,
+                                       "1.1.0",
                                        KLocalizedString(),
                                        KAboutData::License_GPL_V3,
                                        ki18n("Copyright 2012-2014 Harald Sitter"),
@@ -179,7 +179,3 @@ void Module::defaults()
 {
 }
 
-void Module::onStyle()
-{
-    KToolInvocation::invokeBrowser("http://www.youtube.com/watch?v=CX_4aGQWw_4");
-}
index d6ac899..bf55231 100644 (file)
@@ -59,9 +59,6 @@ public:
      */
     void defaults();
 
-protected slots:
-    void onStyle();
-
 private:
     /**
      * UI
diff --git a/about-distro/src/Version.h.cmake b/about-distro/src/Version.h.cmake
deleted file mode 100644 (file)
index e087604..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
-  Copyright (C) 2012 Harald Sitter <apachelogger@ubuntu.com>
-
-  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) version 3 or any later version
-  accepted by the membership of KDE e.V. (or its successor approved
-  by the membership of KDE e.V.), which shall act as a proxy
-  defined in Section 14 of version 3 of the license.
-
-  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, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef VERSION_H
-#define VERSION_H
-
-static const char global_s_versionString[] = "${VERSION_STRING}";
-static const char global_s_versionStringFull[] = "${VERSION_STRING_FULL}";
-
-#endif // VERSION_H