Removed a dummy slider button with no usage and fixed applet's translation.
Signed-off-by: Jukka Selesniemi <[email protected]> --- bluetoothapplet/src/bluetooth.desktop | 1 + bluetoothapplet/src/bluetoothbrief.cpp | 25 ++++++------------------- bluetoothapplet/src/bluetoothbrief.h | 16 ++++------------ 3 files changed, 11 insertions(+), 31 deletions(-) diff --git a/bluetoothapplet/src/bluetooth.desktop b/bluetoothapplet/src/bluetooth.desktop index db1499c..cabcc70 100644 --- a/bluetoothapplet/src/bluetooth.desktop +++ b/bluetoothapplet/src/bluetooth.desktop @@ -3,6 +3,7 @@ Type=DUIApplet Name=Bluetooth Icon= Exec= +X-translation-catalog = duicontrolpanel-bluetoothapplet [DUI] X-DUIApplet-Applet=libbluetoothapplet.so diff --git a/bluetoothapplet/src/bluetoothbrief.cpp b/bluetoothapplet/src/bluetoothbrief.cpp index bc83c10..406f023 100644 --- a/bluetoothapplet/src/bluetoothbrief.cpp +++ b/bluetoothapplet/src/bluetoothbrief.cpp @@ -12,37 +12,24 @@ #include <DcpWidgetTypes> #include "bluetoothbrief.h" -#include <QtDebug> -BluetoothBrief::BluetoothBrief() +BluetoothBrief::BluetoothBrief() : DcpBrief() { } -QString BluetoothBrief::valueText() const +BluetoothBrief::~BluetoothBrief() { - return ""; -} - -QString BluetoothBrief::titleText() const -{ - //% "Bluetooth Devices" - return qtTrId("Bluetooth Devices"); -} -bool BluetoothBrief::toggle() const -{ - return m_ToggleState; } -void BluetoothBrief::setToggle (bool toggle) +QString BluetoothBrief::titleText() const { - m_ToggleState = toggle; - qDebug() << "bluetooth brief got toggle state:" << toggle; + //% "Bluetooth" + return qtTrId("qtn_bluetooth_brief_title"); } int BluetoothBrief::widgetTypeID() const { - return DcpWidgetType::Label; + return DcpWidgetType::Label; } - diff --git a/bluetoothapplet/src/bluetoothbrief.h b/bluetoothapplet/src/bluetoothbrief.h index 4b01e81..09c911e 100644 --- a/bluetoothapplet/src/bluetoothbrief.h +++ b/bluetoothapplet/src/bluetoothbrief.h @@ -18,17 +18,9 @@ class BluetoothBrief: public DcpBrief{ Q_OBJECT public: BluetoothBrief(); - virtual QString valueText() const; - virtual QString titleText() const; - - virtual bool toggle() const; - virtual void setToggle (bool toggle); - virtual int widgetTypeID() const; - -private: - bool m_ToggleState; - int m_Value; + virtual ~BluetoothBrief(); + QString titleText() const; + int widgetTypeID() const; }; - -#endif // SKELETONBRIEF +#endif // BLUETOOTHBRIEF_H -- 1.7.0.4 _______________________________________________ MeeGo-dev mailing list [email protected] http://lists.meego.com/listinfo/meego-dev http://wiki.meego.com/Mailing_list_guidelines
