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

List:       koffice-devel
Subject:    Bug 114580: JJ: The line thickness SpinBox has no tooltip
From:       Fredy Yanardi <fyanardi () gmail ! com>
Date:       2005-10-22 7:26:17
Message-ID: 200510221526.18120.fyanardi () gmail ! com
[Download RAW message or body]

Hi all,

I searched in the bugs.kde.org to find a junior jobs suitable for me, and I 
found this junior job. I have worked on it, and here I attach patch for this 
junior job, I also added tooltips for cap types and join types. I noticed 
this has been assigned to Tim Beaulean, but I think maybe I can save his time 
by doing this simple task :)

I created the diff in current working directory (koffice/karbon/dockers), is 
this correct? Or should I create the diff in the koffice root directory?

Thanks & regards,

Fredy Yanardi


["vstrokedocker.diff" (text/x-diff)]

Index: vstrokedocker.cc
===================================================================
--- vstrokedocker.cc	(revision 472817)
+++ vstrokedocker.cc	(working copy)
@@ -23,6 +23,7 @@
 #include <qlayout.h>
 #include <qpushbutton.h>
 #include <qwidget.h>
+#include <qtooltip.h>
 
 #include <kiconloader.h>
 #include <klocale.h>
@@ -53,6 +54,7 @@
 	// set min/max/step and value in points, then set actual unit
 	m_setLineWidth = new KoUnitDoubleSpinBox( this, 0.0, 1000.0, 0.5, 1.0, KoUnit::U_PT, 2 );
 	m_setLineWidth->setUnit( part->unit() );
+    QToolTip::add( m_setLineWidth, i18n( "Set line width of actual selection" ) );
 	mainLayout->addWidget ( m_setLineWidth, 0, 1 );
 	connect( m_setLineWidth, SIGNAL( valueChanged( double ) ), this, SLOT( widthChanged() ) ); 
 	
@@ -65,14 +67,17 @@
 	button = new QPushButton( "", m_capGroup );
 	button->setPixmap( SmallIcon( "cap_butt" ) );
 	button->setToggleButton( true );
+    QToolTip::add( button, i18n( "Butt cap" ) );
 	m_capGroup->insert( button );
 	button = new QPushButton( "", m_capGroup );
 	button->setPixmap( SmallIcon( "cap_round" ) );
 	button->setToggleButton( true );
+    QToolTip::add( button, i18n( "Round cap" ) );
 	m_capGroup->insert( button );
 	button = new QPushButton( "", m_capGroup );
 	button->setPixmap( SmallIcon( "cap_square" ) );
 	button->setToggleButton( true );
+    QToolTip::add( button, i18n( "Square cap" ) );
 	m_capGroup->insert( button );
 	mainLayout->addWidget( m_capGroup, 1, 1 );
 	connect( m_capGroup, SIGNAL( clicked( int ) ), this, SLOT( slotCapChanged( int ) ) );
@@ -87,14 +92,17 @@
 	button = new QPushButton( "", m_joinGroup );
 	button->setPixmap( SmallIcon( "join_miter" ) );
 	button->setToggleButton( true );
+    QToolTip::add( button, i18n( "Miter join" ) );
 	m_joinGroup->insert( button );
 	button = new QPushButton( "", m_joinGroup );
 	button->setPixmap( SmallIcon( "join_round" ) );
 	button->setToggleButton( true );
+    QToolTip::add( button, i18n( "Round join" ) );
 	m_joinGroup->insert( button );
 	button = new QPushButton( "", m_joinGroup );
 	button->setPixmap( SmallIcon( "join_bevel" ) );
 	button->setToggleButton( true );
+    QToolTip::add( button, i18n( "Bevel join" ) );
 	m_joinGroup->insert( button );
 	mainLayout->addWidget( m_joinGroup, 2, 1 );
 	connect( m_joinGroup, SIGNAL( clicked( int ) ), this, SLOT( slotJoinChanged( int ) ) );


_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


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

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