[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/plasma/applets/screen_control
From: Laurent Montel <montel () kde ! org>
Date: 2009-11-30 8:06:11
Message-ID: 1259568371.910923.14467.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1056437 by mlaurent:
Add missing i18n
Const'ify
M +3 -3 ScreenControl.cpp
M +1 -1 screenbutton.cpp
M +1 -1 screenbutton.h
--- trunk/playground/base/plasma/applets/screen_control/ScreenControl.cpp #1056436:1056437
@@ -46,9 +46,9 @@
m_screen_row->setOrientation( Qt::Horizontal );
m_rows->addItem( m_screen_row );
- m_screen_row->addItem(new ScreenButton("Clone", this));
- m_screen_row->addItem(new ScreenButton("Left-to-Right", this));
- m_screen_row->addItem(new ScreenButton("Right-to-Left", this));
+ m_screen_row->addItem(new ScreenButton(i18n("Clone"), this));
+ m_screen_row->addItem(new ScreenButton(i18n("Left-to-Right"), this));
+ m_screen_row->addItem(new ScreenButton(i18n("Right-to-Left"), this));
m_screen_row->setContentsMargins(6,0,6,0);
m_acceptIcon = new Plasma::IconWidget(KIcon("dialog-ok"),i18n("Accept"));
--- trunk/playground/base/plasma/applets/screen_control/screenbutton.cpp #1056436:1056437
@@ -4,7 +4,7 @@
#include "plasma/widgets/frame.h"
#include "plasma/widgets/iconwidget.h"
-ScreenButton::ScreenButton(QString label, QGraphicsWidget *parent):
+ScreenButton::ScreenButton(const QString &label, QGraphicsWidget *parent):
Plasma::Frame(parent)
{
m_label = new Plasma::IconWidget(KIcon("preferences-desktop-display-randr"), label, this);
--- trunk/playground/base/plasma/applets/screen_control/screenbutton.h #1056436:1056437
@@ -13,7 +13,7 @@
{
Q_OBJECT
public:
- ScreenButton(QString label, QGraphicsWidget *parent);
+ ScreenButton(const QString &label, QGraphicsWidget *parent);
void disable();
bool isEnabled();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic