Bug 65337

Summary: text above next balls (usability)
Product: [Applications] klines Reporter: Sander Devrieze <s.devrieze>
Component: generalAssignee: Roman Merzlyakov <roman>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sander Devrieze 2003-10-01 20:53:49 UTC
Version:            (using KDE KDE 3.1.2)

There is no text above the next balls that will be dropped. So, people new to the game will not see that fast what's the meaning of these three balls.

My proposal:
Add the following text above (place enough) the three balls: "Next:"
Comment 1 Albert Astals Cid 2003-10-03 00:00:52 UTC
Subject: kdegames/klines

CVS commit by aacid: 

Add a label saying what the balls of the right mean. Hope Roman doesn't mind. Won't port to KDE 3.1.X because of the message freeze
CCMAIL:65337-done@bugs.kde.org


  M +10 -3     mwidget.cpp   1.5


--- kdegames/klines/mwidget.cpp  #1.4:1.5
@@ -18,5 +18,10 @@
  ***************************************************************************/
 #include "mwidget.moc"
+
+#include <klocale.h>
+
+#include <qlabel.h>
 #include <qlayout.h>
+
 #include "ballpainter.h"
 
@@ -30,9 +35,11 @@ MainWidget::MainWidget( QWidget* parent,
     grid->addWidget( lsb );
 
-
+    QBoxLayout *right = new QVBoxLayout(grid, 2);
+    QLabel *label = new QLabel(i18n("Next Balls:"), this);
     lPrompt = new LinesPrompt(bPainter, this);
     connect(lPrompt, SIGNAL(PromptPressed()), parent, SLOT(switchPrompt()));
 
-    grid->addWidget( lPrompt );
+    right->addWidget( label, 0, Qt::AlignBottom | Qt::AlignHCenter );
+    right->addWidget( lPrompt, 0, Qt::AlignTop | Qt::AlignHCenter );
 
     grid->activate();