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

List:       kde-commits
Subject:    branches/kblogger/kblogger-0.7/src
From:       Antonio Aloisio <antonio.aloisio () gmail ! com>
Date:       2007-06-15 23:11:17
Message-ID: 1181949077.744228.13683.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 676087 by aloisio:

Added QTooltip to icon in the panel

 M  +6 -1      kblogger.cpp  


--- branches/kblogger/kblogger-0.7/src/kblogger.cpp #676086:676087
@@ -27,6 +27,7 @@
 #include <qsize.h>
 #include <qpixmap.h>
 #include <qcursor.h>
+#include <qtooltip.h>
 
 #include <kaboutdata.h>
 #include <kaboutapplication.h>
@@ -54,6 +55,7 @@
 #include "kbloggerupload.h"
 #include "API_Blogger.h"
 #include "API_MetaWeblog.h"
+//#include "kickertip.h" //TODO USE This instead of Qtooltip!
 
 const int BLOGGER_API=0;
 const int METAWEBLOG_API=1;
@@ -81,12 +83,15 @@
 
 	// create the panel button.
 	panelIcon= new QPixmap( m_iconLoader->loadIcon("kblogger",KIcon::Panel ) );
-// 	QVBoxLayout *appletlay = new QVBoxLayout ( this );
 	m_label= new QLabel(this);
 	m_label->setPixmap(*panelIcon);
+	m_label->setCursor(QCursor(Qt::PointingHandCursor));
+	QToolTip::add( m_label, "<b>KBlogger</b><br><i>LMB</i> to write a new \
post.<br><i>RMB</i> for other options<br>" ); +// 	QVBoxLayout *appletlay = new \
QVBoxLayout ( this );  // 	m_button = new QPushButton ( i18n ( "Blog" ),this );
 // 	appletlay->addWidget ( m_label );
 // 	connect ( m_button, SIGNAL ( clicked() ), this, SLOT ( slotClicked() ) );
+
 	if ( !parent )
 		setBackgroundMode ( X11ParentRelative );
 


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

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