Adding upstream version 0.9.0+20150830.
This commit is contained in:
parent
00179e996f
commit
628e3f6ece
@ -31,7 +31,7 @@
|
||||
#include "mainwindow.h"
|
||||
|
||||
|
||||
AdvancedSettings::AdvancedSettings(LxQt::Settings* settings, QWidget *parent):
|
||||
AdvancedSettings::AdvancedSettings(LXQt::Settings* settings, QWidget *parent):
|
||||
QWidget(parent),
|
||||
mSettings(settings)
|
||||
{
|
||||
|
@ -37,14 +37,14 @@ class AdvancedSettings : public QWidget, public Ui::AdvancedSettings
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AdvancedSettings(LxQt::Settings* settings, QWidget* parent = 0);
|
||||
explicit AdvancedSettings(LXQt::Settings* settings, QWidget* parent = 0);
|
||||
~AdvancedSettings();
|
||||
|
||||
public slots:
|
||||
void restoreSettings();
|
||||
|
||||
private:
|
||||
LxQt::Settings* mSettings;
|
||||
LXQt::Settings* mSettings;
|
||||
|
||||
private slots:
|
||||
void save();
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include "mainwindow.h"
|
||||
|
||||
|
||||
BasicSettings::BasicSettings(LxQt::Settings* settings, QWidget *parent) :
|
||||
BasicSettings::BasicSettings(LXQt::Settings* settings, QWidget *parent) :
|
||||
QWidget(parent),
|
||||
mSettings(settings)
|
||||
{
|
||||
@ -49,7 +49,7 @@ BasicSettings::BasicSettings(LxQt::Settings* settings, QWidget *parent) :
|
||||
connect(bottomCenterRB, SIGNAL(clicked()), this, SLOT(updateNotification()));
|
||||
connect(bottomRightRB, SIGNAL(clicked()), this, SLOT(updateNotification()));
|
||||
|
||||
LxQt::Notification serverTest;
|
||||
LXQt::Notification serverTest;
|
||||
QString serverName = serverTest.serverInfo().name;
|
||||
if (serverName != "lxqt-notificationd")
|
||||
{
|
||||
@ -114,7 +114,7 @@ void BasicSettings::updateNotification()
|
||||
align = QStringLiteral("bottom-right");
|
||||
|
||||
mSettings->setValue(QStringLiteral("placement"), align);
|
||||
LxQt::Notification::notify(tr("Notification demo ") + align,
|
||||
LXQt::Notification::notify(tr("Notification demo ") + align,
|
||||
tr("This is a test notification.\n All notifications will now appear here on LXQt."),
|
||||
QStringLiteral("lxqt-logo.png"));
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ class BasicSettings : public QWidget, public Ui::BasicSettings
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit BasicSettings(LxQt::Settings* settings, QWidget* parent = 0);
|
||||
explicit BasicSettings(LXQt::Settings* settings, QWidget* parent = 0);
|
||||
~BasicSettings();
|
||||
|
||||
public slots:
|
||||
@ -47,7 +47,7 @@ private slots:
|
||||
void updateNotification();
|
||||
|
||||
private:
|
||||
LxQt::Settings* mSettings;
|
||||
LXQt::Settings* mSettings;
|
||||
};
|
||||
|
||||
#endif // BASICSETTINGS_H
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
LxQt::SingleApplication a(argc, argv);
|
||||
LXQt::SingleApplication a(argc, argv);
|
||||
|
||||
MainWindow w;
|
||||
w.setWindowIcon(QIcon::fromTheme("preferences-desktop-theme"));
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) :
|
||||
LxQt::ConfigDialog(tr("Desktop Notifications"), new LxQt::Settings("notifications"), parent)
|
||||
LXQt::ConfigDialog(tr("Desktop Notifications"), new LXQt::Settings("notifications"), parent)
|
||||
{
|
||||
BasicSettings* basic = new BasicSettings(mSettings, this);
|
||||
addPage(basic, tr("Basic Settings"), "preferences-desktop-notification");
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <LXQt/ConfigDialog>
|
||||
|
||||
|
||||
class MainWindow : public LxQt::ConfigDialog
|
||||
class MainWindow : public LXQt::ConfigDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[cs]=Nastavení oznamování v LxQtu
|
||||
Name[cs]=Nastavení oznamování v LxQtu
|
||||
Comment[cs]=Nastavit oznamování na ploše LxQt
|
||||
GenericName[cs]=Nastavení oznamování v LXQtu
|
||||
Name[cs]=Nastavení oznamování v LXQtu
|
||||
Comment[cs]=Nastavit oznamování na ploše LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[cs_CZ]=Nastavení oznamování v LxQtu
|
||||
Name[cs_CZ]=Nastavení oznamování v LxQtu
|
||||
Comment[cs_CZ]=Nastavit oznamování na ploše LxQt
|
||||
GenericName[cs_CZ]=Nastavení oznamování v LXQtu
|
||||
Name[cs_CZ]=Nastavení oznamování v LXQtu
|
||||
Comment[cs_CZ]=Nastavit oznamování na ploše LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[da]=Notesblok
|
||||
Name[da]=Strømstyring
|
||||
Comment[da]=Indstil freedesktop meddelelser på LxQt skrivebord
|
||||
Comment[da]=Indstil freedesktop meddelelser på LXQt skrivebord
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[da_DK]=LxQt freedesktop Meddelelsesindstillinger
|
||||
Name[da_DK]=LxQt freedesktop Meddelelsesindstillinger
|
||||
Comment[da_DK]=Indstil freedesktop meddelelser på LxQt skrivebord
|
||||
GenericName[da_DK]=LXQt freedesktop Meddelelsesindstillinger
|
||||
Name[da_DK]=LXQt freedesktop Meddelelsesindstillinger
|
||||
Comment[da_DK]=Indstil freedesktop meddelelser på LXQt skrivebord
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
Name[de]=Mitteilungen der Arbeitsfläche
|
||||
GenericName[de]=LxQt Mitteilungseinstellungen
|
||||
GenericName[de]=LXQt Mitteilungseinstellungen
|
||||
Comment[de]=Konfiguration von Benachrichtigungen
|
4
config/translations/lxqt-config-notificationd_el.desktop
Normal file
4
config/translations/lxqt-config-notificationd_el.desktop
Normal file
@ -0,0 +1,4 @@
|
||||
# Translations
|
||||
Name[el]=Ειδοποιήσεις επιφάνειας εργασίας
|
||||
GenericName[el]=Ρυθμίσεις ειδοποιήσεων LXQt
|
||||
Comment[el]=Διαμόρφωση των ειδοποιήσεων της επιφάνειας εργασίας LXQt
|
105
config/translations/lxqt-config-notificationd_el.ts
Normal file
105
config/translations/lxqt-config-notificationd_el.ts
Normal file
@ -0,0 +1,105 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="el">
|
||||
<context>
|
||||
<name>AdvancedSettings</name>
|
||||
<message>
|
||||
<location filename="../advancedsettings.ui" line="17"/>
|
||||
<source>Sizes</source>
|
||||
<translation>Μεγέθη</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../advancedsettings.ui" line="25"/>
|
||||
<source>Width:</source>
|
||||
<translation>Πλάτος:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../advancedsettings.ui" line="32"/>
|
||||
<location filename="../advancedsettings.ui" line="56"/>
|
||||
<source> px</source>
|
||||
<translation> εικ</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../advancedsettings.ui" line="49"/>
|
||||
<source>Spacing:</source>
|
||||
<translation>Απόσταση:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../advancedsettings.ui" line="68"/>
|
||||
<source>Duration</source>
|
||||
<translation>Διάρκεια</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../advancedsettings.ui" line="74"/>
|
||||
<source>Some notifications set their own on-screen duration.</source>
|
||||
<translation>Μερικές ειδοποιήσεις καθορίζουν τη δική τους διάρκεια εμφάνισης.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../advancedsettings.ui" line="86"/>
|
||||
<source>Default duration:</source>
|
||||
<translation>Διάρκεια εξ ορισμού:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../advancedsettings.ui" line="93"/>
|
||||
<source> sec</source>
|
||||
<translation> δευτ</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>BasicSettings</name>
|
||||
<message>
|
||||
<location filename="../basicsettings.ui" line="23"/>
|
||||
<source>Basic Settings</source>
|
||||
<translation>Βασικές ρυθμίσεις</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../basicsettings.ui" line="30"/>
|
||||
<source>Position on screen</source>
|
||||
<translation>Θέση στην οθόνη</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../basicsettings.cpp" line="57"/>
|
||||
<source><b>Warning:</b> No notifications daemon is running.
|
||||
A fallback will be used.</source>
|
||||
<translation><b>Προειδοποίηση:</b> Δεν εκτελείται κάποιος δαίμονας ειδοποιήσεων
|
||||
Θα χρησιμοποιηθεί η ανακατεύθυνση.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../basicsettings.cpp" line="60"/>
|
||||
<source><b>Warning:</b> A third-party notifications daemon (%1) is running.
|
||||
These settings won't have any effect on it!</source>
|
||||
<translation><b>Προειδοποίηση:</b> Εκτελείται ένας δαίμονας ειδοποιήσεων τρίτων (%1).
|
||||
Αυτές οι ρυθμίσεις δεν θα έχουν κάποια επίδραση σε αυτόν!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../basicsettings.cpp" line="117"/>
|
||||
<source>Notification demo </source>
|
||||
<translation>Επίδειξη ειδοποιήσεων </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../basicsettings.cpp" line="118"/>
|
||||
<source>This is a test notification.
|
||||
All notifications will now appear here on LXQt.</source>
|
||||
<translation>Αυτή είναι μια δοκιμαστική ειδοποίηση.
|
||||
Όλες οι ειδοποιήσεις στο LXQt θα εμφανίζονται εδώ.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MainWindow</name>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="40"/>
|
||||
<source>Desktop Notifications</source>
|
||||
<translation>Ειδοποιήσεις επιφάνειας εργασίας</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="43"/>
|
||||
<source>Basic Settings</source>
|
||||
<translation>Βασικές ρυθμίσεις</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../mainwindow.cpp" line="47"/>
|
||||
<source>Advanced Settings</source>
|
||||
<translation>Προηγμένες ρυθμίσεις</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -1,4 +0,0 @@
|
||||
# Translations
|
||||
GenericName[el_GR]=Διαμόρφωση ειδοποιήσεων LxQt
|
||||
Name[el_GR]=Διαμόρφωση ειδοποιήσεων LxQt
|
||||
Comment[el_GR]=Διαμόρφωση ειδοποιήσεων στην επιφάνεια εργασίας LxQt
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[eo]=Agordoj de muso por LxQto
|
||||
Name[eo]=Agordoj de muso por LxQto
|
||||
Comment[eo]=Agordi atentigojn de freedesktop en LxQt-labortablo
|
||||
GenericName[eo]=Agordoj de muso por LXQto
|
||||
Name[eo]=Agordoj de muso por LXQto
|
||||
Comment[eo]=Agordi atentigojn de freedesktop en LXQt-labortablo
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[es]=Administrador de tareas
|
||||
Name[es]=Configuración de sesiones LxQt
|
||||
Comment[es]=Configure las notificacionde de freedesktop en el escritorio LxQt
|
||||
Name[es]=Configuración de sesiones LXQt
|
||||
Comment[es]=Configure las notificacionde de freedesktop en el escritorio LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[es_VE]=Configuracion de notificaciones de Escritorio LxQt
|
||||
Name[es_VE]=Configuracion de notificaciones de Escritorio LxQt
|
||||
Comment[es_VE]=Configura las notificacones en el Escritoro LxQt
|
||||
GenericName[es_VE]=Configuracion de notificaciones de Escritorio LXQt
|
||||
Name[es_VE]=Configuracion de notificaciones de Escritorio LXQt
|
||||
Comment[es_VE]=Configura las notificacones en el Escritoro LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[eu]=LxQt Freedesktop jakinarazpenen konfigurazioa
|
||||
Name[eu]=LxQt Freedesktop jakinarazpenen konfigurazioa
|
||||
Comment[eu]=Konfiguratu LxQt mahaigaineko Freedesktop jakinarazpenak
|
||||
GenericName[eu]=LXQt Freedesktop jakinarazpenen konfigurazioa
|
||||
Name[eu]=LXQt Freedesktop jakinarazpenen konfigurazioa
|
||||
Comment[eu]=Konfiguratu LXQt mahaigaineko Freedesktop jakinarazpenak
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[fi]=LxQt-työpöydän ilmoitusasetukset
|
||||
Name[fi]=LxQt-työpöydän ilmoitusasetukset
|
||||
Comment[fi]=Muokkaa LxQt-työpöydän ilmoituksia
|
||||
GenericName[fi]=LXQt-työpöydän ilmoitusasetukset
|
||||
Name[fi]=LXQt-työpöydän ilmoitusasetukset
|
||||
Comment[fi]=Muokkaa LXQt-työpöydän ilmoituksia
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[hu]=Az asztali értesítések beállítása
|
||||
Name[hu]=LxQt értesítések beállítása
|
||||
Name[hu]=LXQt értesítések beállítása
|
||||
Comment[hu]=A felbukkanó értesítések beállítása
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Translations
|
||||
GenericName[id_ID]=Hell World
|
||||
Name[id_ID]=Konfigurator Desktop LxQt
|
||||
Name[id_ID]=Konfigurator Desktop LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[it]=Notifiche
|
||||
Name[it]=Configura notifiche
|
||||
Comment[it]=Configura le notifiche Freedesktop del Desktop LxQt
|
||||
Comment[it]=Configura le notifiche Freedesktop del Desktop LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[ja]=LxQtフリーデスクトップ通知の設定
|
||||
Name[ja]=LxQtフリーデスクトップ通知の設定
|
||||
Comment[ja]=LxQtデスクトップでフリーデスクトップ通知を設定
|
||||
GenericName[ja]=LXQtフリーデスクトップ通知の設定
|
||||
Name[ja]=LXQtフリーデスクトップ通知の設定
|
||||
Comment[ja]=LXQtデスクトップでフリーデスクトップ通知を設定
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[lt]=Qlipper
|
||||
Name[lt]=Energijos naudojimo nustatymai
|
||||
Comment[lt]=Konfigūruoti freedesktop pranešimus LxQt darbalaukyje
|
||||
Comment[lt]=Konfigūruoti freedesktop pranešimus LXQt darbalaukyje
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[nl]=Notepad
|
||||
Name[nl]=Energiebeheer
|
||||
Comment[nl]=Configureren freedesktop meldingen in LxQt desktop
|
||||
Comment[nl]=Configureren freedesktop meldingen in LXQt desktop
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Translations
|
||||
GenericName[pl]=Menu
|
||||
Name[pl]=Panel sterowania LxQt
|
||||
Name[pl]=Panel sterowania LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[pl_PL]=Konfiguracja wyglądu LxQt
|
||||
Name[pl_PL]=Konfiguracja wyglądu LxQt
|
||||
Comment[pl_PL]=Konfiguruj powiadomienia freedesktop w LxQt
|
||||
GenericName[pl_PL]=Konfiguracja wyglądu LXQt
|
||||
Name[pl_PL]=Konfiguracja wyglądu LXQt
|
||||
Comment[pl_PL]=Konfiguruj powiadomienia freedesktop w LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[pt_BR]=Suspender Automaticamente
|
||||
Name[pt_BR]=Gerenciamento de energia
|
||||
Comment[pt_BR]=Configurar as notificações do freedesktop na área de trabalho do LxQt
|
||||
Comment[pt_BR]=Configurar as notificações do freedesktop na área de trabalho do LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[ro_RO]=Părăsește
|
||||
Name[ro_RO]=Părăsește sistemul
|
||||
Comment[ro_RO]=Configurează notificările freedesktop în desktop-ul LxQt
|
||||
Comment[ro_RO]=Configurează notificările freedesktop în desktop-ul LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[ru]=Настройки уведомлений LxQt
|
||||
GenericName[ru]=Настройки уведомлений LXQt
|
||||
Name[ru]=Уведомления рабочего стола
|
||||
Comment[ru]=Настроить уведомления рабочего стола
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[ru_RU]=Настройки уведомлений LxQt
|
||||
GenericName[ru_RU]=Настройки уведомлений LXQt
|
||||
Name[ru_RU]=Уведомления рабочего стола
|
||||
Comment[ru_RU]=Настроить уведомления рабочего стола
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[sl]=Nastavitve obvestil
|
||||
Name[sl]=Nastavitve obvestil na namizju
|
||||
Comment[sl]=Nastavite obvestila na namizju LxQt
|
||||
Comment[sl]=Nastavite obvestila na namizju LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[th_TH]=การตั้งค่าการเตือนต่างๆ ของ LxQt Freedesktop
|
||||
Name[th_TH]=การตั้งค่าการเตือนต่างๆ ของ LxQt Freedesktop
|
||||
Comment[th_TH]=ตั้งค่าการเตือนต่างๆ ของ freedesktop ในเดสก์ท็อป LxQt
|
||||
GenericName[th_TH]=การตั้งค่าการเตือนต่างๆ ของ LXQt Freedesktop
|
||||
Name[th_TH]=การตั้งค่าการเตือนต่างๆ ของ LXQt Freedesktop
|
||||
Comment[th_TH]=ตั้งค่าการเตือนต่างๆ ของ freedesktop ในเดสก์ท็อป LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[tr]=Not Defteri
|
||||
Name[tr]=Güç yönetimi
|
||||
Comment[tr]=LxQt masaüstünde freedesktop bildirimlerini ayarla
|
||||
Comment[tr]=LXQt masaüstünde freedesktop bildirimlerini ayarla
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[uk]=Налаштування Freedesktop сповіщень LxQt
|
||||
Name[uk]=Налаштування Freedesktop сповіщень LxQt
|
||||
Comment[uk]=Налаштувати Freedesktop сповіщення в стільниці LxQt
|
||||
GenericName[uk]=Налаштування Freedesktop сповіщень LXQt
|
||||
Name[uk]=Налаштування Freedesktop сповіщень LXQt
|
||||
Comment[uk]=Налаштувати Freedesktop сповіщення в стільниці LXQt
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[zh_CN]=qxkb
|
||||
Name[zh_CN]=LxQt 通知配置
|
||||
Comment[zh_CN]=配置 LxQt 桌面的通知
|
||||
Name[zh_CN]=LXQt 通知配置
|
||||
Comment[zh_CN]=配置 LXQt 桌面的通知
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Translations
|
||||
GenericName[zh_TW]=LxQt通知設定
|
||||
Name[zh_TW]=LxQt通知設定
|
||||
Comment[zh_TW]=LxQt桌面上的FreeDesktop通知設定
|
||||
GenericName[zh_TW]=LXQt通知設定
|
||||
Name[zh_TW]=LXQt通知設定
|
||||
Comment[zh_TW]=LXQt桌面上的FreeDesktop通知設定
|
||||
|
@ -65,7 +65,7 @@
|
||||
*/
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
LxQt::Application a(argc, argv);
|
||||
LXQt::Application a(argc, argv);
|
||||
|
||||
a.setQuitOnLastWindowClosed(false);
|
||||
|
||||
|
@ -40,7 +40,7 @@ Notifyd::Notifyd(QObject* parent)
|
||||
mId(0)
|
||||
{
|
||||
m_area = new NotificationArea();
|
||||
m_settings = new LxQt::Settings("notifications");
|
||||
m_settings = new LXQt::Settings("notifications");
|
||||
reloadSettings();
|
||||
|
||||
connect(this, SIGNAL(notificationAdded(uint,QString,QString,QString,QString,int,QStringList,QVariantMap)),
|
||||
|
@ -129,7 +129,7 @@ private:
|
||||
NotificationArea *m_area;
|
||||
int m_serverTimeout;
|
||||
|
||||
LxQt::Settings *m_settings;
|
||||
LXQt::Settings *m_settings;
|
||||
|
||||
private slots:
|
||||
void reloadSettings();
|
||||
|
15
src/translations/lxqt-notificationd_el.ts
Normal file
15
src/translations/lxqt-notificationd_el.ts
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="el">
|
||||
<context>
|
||||
<name>NotificationActionsComboWidget</name>
|
||||
<message>
|
||||
<source>Actions:</source>
|
||||
<translation>Ενέργειες:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>OK</source>
|
||||
<translation>Εντάξει</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -33,14 +33,14 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
{
|
||||
ui->setupUi(this);
|
||||
connect(ui->pushButton, SIGNAL(clicked()), SLOT(createNotification()));
|
||||
LxQtNotification::notify("1");
|
||||
LxQtNotification::notify("2");
|
||||
LxQtNotification::notify("3");
|
||||
LXQtNotification::notify("1");
|
||||
LXQtNotification::notify("2");
|
||||
LXQtNotification::notify("3");
|
||||
}
|
||||
|
||||
void MainWindow::createNotification()
|
||||
{
|
||||
LxQtNotification* n = new LxQtNotification("Notification!");
|
||||
LXQtNotification* n = new LXQtNotification("Notification!");
|
||||
nlist.append(n);
|
||||
connect(n, SIGNAL(actionActivated(int)), this, SLOT(clickEvent(int)));
|
||||
n->setActions(QStringList() << "Hi" << "Bye" << "foo" << "bar" << "lorem" << "ipsum", 1);
|
||||
@ -50,7 +50,7 @@ void MainWindow::createNotification()
|
||||
|
||||
void MainWindow::clickEvent(int button)
|
||||
{
|
||||
LxQtNotification* n = qobject_cast<LxQtNotification*>(sender());
|
||||
LXQtNotification* n = qobject_cast<LXQtNotification*>(sender());
|
||||
if (n)
|
||||
{
|
||||
if (button == 0)
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
class LxQtNotification;
|
||||
class LXQtNotification;
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
@ -47,7 +47,7 @@ public slots:
|
||||
|
||||
private:
|
||||
Ui::MainWindow* ui;
|
||||
QList<LxQtNotification*> nlist;
|
||||
QList<LXQtNotification*> nlist;
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user