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

List:       kde-commits
Subject:    [kde-workspace] plasma/generic/tools/wallpaperviewer: Make it possible to configure a wallpaper from
From:       Aleix Pol <aleixpol () kde ! org>
Date:       2012-09-18 15:34:48
Message-ID: 20120918153448.98320A6094 () git ! kde ! org
[Download RAW message or body]

Git commit b223f16d592e9e78ac68ee0da72229d40cb83077 by Aleix Pol.
Committed on 18/09/2012 at 17:30.
Pushed by apol into branch 'master'.

Make it possible to configure a wallpaper from the viewer

Extend the plasmawallpaperviewer with a --configure flag that will
show the configure dialog additionally to the wallpaper.

It's useful because there it's easy to debug the config dialog, I
don't know other ways of doing that besides installing+restarting
plasma.

REVIEW: 106495

M  +5    -0    plasma/generic/tools/wallpaperviewer/main.cpp
M  +2    -1    plasma/generic/tools/wallpaperviewer/wallpaperwidget.h

http://commits.kde.org/kde-workspace/b223f16d592e9e78ac68ee0da72229d40cb83077

diff --git a/plasma/generic/tools/wallpaperviewer/main.cpp \
b/plasma/generic/tools/wallpaperviewer/main.cpp index ea3c5d4..469d70f 100644
--- a/plasma/generic/tools/wallpaperviewer/main.cpp
+++ b/plasma/generic/tools/wallpaperviewer/main.cpp
@@ -112,6 +112,7 @@ int main(int argc, char **argv)
     options.add("m");
     options.add("mode <mode name>", ki18n("The mode to put the wallpaper in"), \
                "SingleImage");
     options.add("list", ki18n("List all the known wallpapers and their modes"));
+    options.add("configure", ki18n("Open configuration dialog additionally to \
showing the wallpaper plugin"));  KCmdLineArgs::addCmdLineOptions(options);
 
     KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
@@ -137,6 +138,10 @@ int main(int argc, char **argv)
         w->resize(width, height);
     }
 
+    if(args->isSet("configure")) {
+        w->configure();
+    }
+
     args->clear();
     w->show();
     int rv = app.exec();
diff --git a/plasma/generic/tools/wallpaperviewer/wallpaperwidget.h \
b/plasma/generic/tools/wallpaperviewer/wallpaperwidget.h index 0f387a5..ad1c36b \
                100644
--- a/plasma/generic/tools/wallpaperviewer/wallpaperwidget.h
+++ b/plasma/generic/tools/wallpaperviewer/wallpaperwidget.h
@@ -39,6 +39,8 @@ public:
     WallpaperWidget(const QString &paper, const QString &mode, QWidget *parent = 0);
     ~WallpaperWidget();
 
+    void configure();
+
 protected:
     void closeEvent(QCloseEvent *event);
     void paintEvent(QPaintEvent *event);
@@ -52,7 +54,6 @@ protected:
 protected Q_SLOTS:
     void quit();
     void updatePaper(const QRectF &exposedRect);
-    void configure();
     void saveConfig();
     void configDone();
     void syncConfig();


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

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