[kopete-bugs] [Bug 190786] Notification Ignore and Show buttons dissapeared

George Kiagiadakis gkiagiad at csd.uoc.gr
Mon Apr 27 20:31:03 CEST 2009


https://bugs.kde.org/show_bug.cgi?id=190786


George Kiagiadakis <gkiagiad at csd.uoc.gr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |gkiagiad at csd.uoc.gr
          Component|general                     |notifications
         AssignedTo|kopete-bugs at kde.org         |r.scheepmaker at student.utwen
                   |                            |te.nl
            Product|kopete                      |plasma
     Ever Confirmed|0                           |1




--- Comment #5 from George Kiagiadakis <gkiagiad csd uoc gr>  2009-04-27 20:31:01 ---
This seems like a plasma/Qt related bug. It happens with all notifications that
have actions and it seems to be triggered by Qt 4.5.1, as it used to work fine
with Qt 4.5.0.

Here is a testcase to show the problem:
Assuming that you have Qt 4.5.1 installed, the two actions (buttons) "foo" and
"bar" should not appear on the popup. However, you can show them if you click
twice on the application icon that appears on the top left corner of the popup.
--------------
#include <QtCore/QCoreApplication>
#include <QtCore/QStringList>
#include <QtCore/QTimer>
#include <knotification.h>
#include <kcomponentdata.h>
#include <klocale.h>
#include <kaboutdata.h>

int main(int argc, char **argv)
{
        QCoreApplication a(argc, argv);
        KComponentData d(KAboutData("kwrited", 0, ki18n("kwrited-test"),
"1.0"));
        KNotification *notification = new KNotification("NewMessage", 0,
KNotification::Persistent);
        notification->setComponentData(d);
        notification->setText( "hello world" );
        notification->setActions(QStringList() << "foo" << "bar");
        notification->sendEvent();
        QTimer::singleShot(5000, &a, SLOT(quit()));
        return a.exec();
}
-----------

I compiled that with "g++ test.cpp -lkdeui -I/usr/include/qt4" on a debian
system. I have put the app name to be "kwrited", so that it uses the
kwrited.notifyrc file that is installed with kdebase/workspace/kwrited, as it
was easier for me.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the kopete-bugs mailing list