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

List:       kde-commits
Subject:    branches/KDE/4.0/kdebase/workspace/plasma/applets/kickoff
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2008-01-24 21:52:45
Message-ID: 1201211565.479769.20665.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 765921 by sebsauer:

backport r761346 (slightly changed to keep bc)
start kickoff applet with focus on favorites view



 M  +1 -0      applet/applet.cpp  
 M  +5 -0      ui/launcher.cpp  
 M  +5 -0      ui/launcher.h  


--- branches/KDE/4.0/kdebase/workspace/plasma/applets/kickoff/applet/applet.cpp #765920:765921
@@ -176,6 +176,7 @@
         d->launcher->setApplet(this);
         connect(d->launcher, SIGNAL(aboutToHide()), d->icon, SLOT(setUnpressed()));
     }
+    d->launcher->doFocusFavoritesView();
 
     // try to position the launcher alongside the top or bottom edge of the
     // applet with and aligned to the left or right of the applet
--- branches/KDE/4.0/kdebase/workspace/plasma/applets/kickoff/ui/launcher.cpp #765920:765921
@@ -486,5 +486,10 @@
     p.drawRect(rect().adjusted(0, 0, -1, -1));
 }
 
+void Launcher::doFocusFavoritesView()
+{
+    focusFavoritesView();
+}
+
 #include "launcher.moc"
 
--- branches/KDE/4.0/kdebase/workspace/plasma/applets/kickoff/ui/launcher.h #765920:765921
@@ -62,6 +62,11 @@
     virtual bool eventFilter(QObject *object, QEvent *event);
     virtual QSize sizeHint() const;
 
+    /** This calls the \a focusFavoritesView() below and is only here to keep binary
+    compatibility. In KDE 4.1 the \a focusFavoritesView() below got just changed to
+    a public slot. */
+    void doFocusFavoritesView();
+
 signals:
     void aboutToHide();
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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