Changeset View
Changeset View
Standalone View
Standalone View
src/knotification.cpp
Show First 20 Lines • Show All 370 Lines • ▼ Show 20 Line(s) | 367 | } else { | |||
---|---|---|---|---|---|
371 | if (QTabWidget *tab_widget = qobject_cast<QTabWidget *>(pw)) { | 371 | if (QTabWidget *tab_widget = qobject_cast<QTabWidget *>(pw)) { | ||
372 | tab_widget->setCurrentIndex(tab_widget->indexOf(w)); | 372 | tab_widget->setCurrentIndex(tab_widget->indexOf(w)); | ||
373 | } | 373 | } | ||
374 | } | 374 | } | ||
375 | } | 375 | } | ||
376 | 376 | | |||
377 | static QString defaultComponentName() | 377 | static QString defaultComponentName() | ||
378 | { | 378 | { | ||
379 | #ifndef Q_OS_ANDROID | 379 | #if defined(Q_OS_ANDROID) | ||
380 | return QStringLiteral("plasma_workspace"); | | |||
381 | #else | | |||
382 | return QStringLiteral("android_defaults"); | 380 | return QStringLiteral("android_defaults"); | ||
381 | #elif defined(Q_OS_WIN) | ||||
382 | return QStringLiteral("win32_defaults"); | ||||
pino: #elif defined(Q_OS_WIN) | |||||
nicolasfella: where is the win32_defaults.notifyrc file? | |||||
383 | #else | ||||
384 | return QStringLiteral("plasma_workspace"); | ||||
383 | #endif | 385 | #endif | ||
384 | } | 386 | } | ||
385 | 387 | | |||
386 | KNotification *KNotification::event(const QString &eventid, const QString &title, const QString &text, | 388 | KNotification *KNotification::event(const QString &eventid, const QString &title, const QString &text, | ||
387 | const QPixmap &pixmap, QWidget *widget, const NotificationFlags &flags, const QString &componentName) | 389 | const QPixmap &pixmap, QWidget *widget, const NotificationFlags &flags, const QString &componentName) | ||
388 | { | 390 | { | ||
389 | KNotification *notify = new KNotification(eventid, widget, flags); | 391 | KNotification *notify = new KNotification(eventid, widget, flags); | ||
390 | notify->setTitle(title); | 392 | notify->setTitle(title); | ||
▲ Show 20 Lines • Show All 189 Lines • Show Last 20 Lines |
#elif defined(Q_OS_WIN)