[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/tasks
From:       Laurent Montel <montel () kde ! org>
Date:       2009-06-01 15:01:14
Message-ID: 1243868474.998607.8089.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 976396 by mlaurent:

Minor fix
Add missing i18n


 M  +3 -6      abstracttaskitem.cpp  
 M  +2 -2      taskgroupitem.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/abstracttaskitem.cpp \
#976395:976396 @@ -91,7 +91,7 @@
 {
     QFontMetrics fm(KGlobalSettings::taskbarFont());
     QSize mSize = fm.size(0, "M");
-    int iconsize = KIconLoader::SizeSmall;
+    const int iconsize = KIconLoader::SizeSmall;
 
     //the 4 should be the default spacing between layout items, is there a way to \
                fetch it without hardcoding?
     // in small panels, we'll reduce the spacing a bit so it's easier to cramp the \
text in and still get two rows @@ -540,7 +540,6 @@
         painter->drawPixmap(QPoint(0,0), result);
     }
 
-    return;
 }
 
 void AbstractTaskItem::drawTask(QPainter *painter, const QStyleOptionGraphicsItem \
*option, QWidget *) @@ -783,10 +782,8 @@
 {
     Q_UNUSED(event);
 
-    if (m_activateTimer) {
-        delete m_activateTimer;
-        m_activateTimer = 0;
-    }
+    delete m_activateTimer;
+    m_activateTimer = 0;
 }
 
 QRect AbstractTaskItem::iconGeometry() const
--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/taskgroupitem.cpp #976395:976396
@@ -818,8 +818,8 @@
     Q_ASSERT(m_applet);
     if (m_applet->groupManager().taskGrouper()->editableGroupProperties() & \
TaskManager::AbstractGroupingStrategy::Name) {  bool ok;
-        QString text = QInputDialog::getText(qobject_cast<QWidget*>(this), tr("Edit \
                Group"),
-                                            tr("New Group Name: "), \
QLineEdit::Normal, +        QString text = \
QInputDialog::getText(qobject_cast<QWidget*>(this), i18n("Edit Group"), +             \
i18n("New Group Name: "), QLineEdit::Normal,  m_group->name(), &ok);
         if (ok && !text.isEmpty()) {
             m_group->setName(text);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic