r17903 by fschmid - Fixed Bug #11140: Converting some MenuButtonPopup to DelayedPopup

scribus-commit scribus-commit at lists.scribus.net
Sat Nov 24 11:09:33 UTC 2012


Author: fschmid
Date: Sat Nov 24 11:09:33 2012
New Revision: 17903

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17903
Log:
Fixed Bug #11140: Converting some MenuButtonPopup to DelayedPopup

Modified:
    trunk/Scribus/scribus/ui/modetoolbar.cpp

Modified: trunk/Scribus/scribus/ui/modetoolbar.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17903&path=/trunk/Scribus/scribus/ui/modetoolbar.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/modetoolbar.cpp (original)
+++ trunk/Scribus/scribus/ui/modetoolbar.cpp Sat Nov 24 11:09:33 2012
@@ -53,15 +53,10 @@
 	this->addAction(m_ScMW->scrActions["toolsInsertTable"]);
 	
 	this->addAction(m_ScMW->scrActions["toolsInsertShape"]);
-//	insertShapeButtonMenu = new QMenu();
 	Rechteck = new AutoformButtonGroup( NULL );
-//	insertShapeButtonAct = new QWidgetAction( this );
-//	insertShapeButtonAct->setDefaultWidget(Rechteck);
-//	insertShapeButtonMenu->addAction(insertShapeButtonAct);
-//	m_ScMW->scrActions["toolsInsertShape"]->setMenu(insertShapeButtonMenu);
 	m_ScMW->scrActions["toolsInsertShape"]->setMenu(Rechteck);
 	QToolButton* tb = dynamic_cast<QToolButton*>(this->widgetForAction(m_ScMW->scrActions["toolsInsertShape"]));
-	tb->setPopupMode(QToolButton::MenuButtonPopup);
+	tb->setPopupMode(QToolButton::DelayedPopup);
 	m_ScMW->scrActions["toolsInsertShape"]->setIcon(QIcon(Rechteck->getIconPixmap(0,16)));
 
 	this->addAction(m_ScMW->scrActions["toolsInsertPolygon"]);
@@ -69,7 +64,7 @@
 	idInsertPolygonButtonMenu = insertPolygonButtonMenu->addAction( "Properties...", this, SLOT(GetPolyProps()));
 	m_ScMW->scrActions["toolsInsertPolygon"]->setMenu(insertPolygonButtonMenu);
 	QToolButton* tb2 = dynamic_cast<QToolButton*>(this->widgetForAction(m_ScMW->scrActions["toolsInsertPolygon"]));
-	tb2->setPopupMode(QToolButton::MenuButtonPopup);
+	tb2->setPopupMode(QToolButton::DelayedPopup);
 
 	this->addAction(m_ScMW->scrActions["toolsInsertArc"]);
 	this->addAction(m_ScMW->scrActions["toolsInsertSpiral"]);
@@ -99,7 +94,7 @@
 	this->addAction(m_ScMW->scrActions["toolsInsertCalligraphicLine"]);
 	m_ScMW->scrActions["toolsInsertCalligraphicLine"]->setMenu(calPop);
 	QToolButton* tb3 = dynamic_cast<QToolButton*>(this->widgetForAction(m_ScMW->scrActions["toolsInsertCalligraphicLine"]));
-	tb3->setPopupMode(QToolButton::MenuButtonPopup);
+	tb3->setPopupMode(QToolButton::DelayedPopup);
 
 	this->addAction(m_ScMW->scrActions["toolsRotate"]);
 	this->addAction(m_ScMW->scrActions["toolsZoom"]);
@@ -137,7 +132,6 @@
 void ModeToolBar::SelShape(int s, int c, qreal *vals)
 {
 	m_ScMW->scrActions["toolsInsertShape"]->setIcon(QIcon(Rechteck->getIconPixmap(s,16)));
-//	insertShapeButtonMenu->hide();
 	SubMode = s;
 	ValCount = c;
 	ShapeVals = vals;




More information about the scribus-commit mailing list