r24571 by craig - #16509: Update patch for tabulator delete buttons (bubu)

scribus-commit scribus-commit at lists.scribus.net
Tue Mar 16 20:44:43 UTC 2021


Author: craig
Date: Tue Mar 16 20:44:43 2021
New Revision: 24571

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24571
Log:
#16509: Update patch for tabulator delete buttons (bubu)

Modified:
    trunk/Scribus/scribus/ui/tabruler.cpp
    trunk/Scribus/scribus/ui/tabruler.h

Modified: trunk/Scribus/scribus/ui/tabruler.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24571&path=/trunk/Scribus/scribus/ui/tabruler.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/tabruler.cpp	(original)
+++ trunk/Scribus/scribus/ui/tabruler.cpp	Tue Mar 16 20:44:43 2021
@@ -542,18 +542,12 @@
 	tabFillComboT->setBuddy(tabFillCombo);
 	layout1->addWidget( tabFillComboT );
 	layout1->addWidget( tabFillCombo );
-	clearOneButton = new QPushButton( this );
-	clearOneButton->setText("");
+	clearOneButton = new QToolButton( this );
 	clearOneButton->setIcon(IconManager::instance().loadIcon("16/edit-delete.png"));
-	clearOneButton->setMinimumSize(24, 24);
-	clearOneButton->setMaximumSize(24, 24);
 	layout1->addSpacing(12);
 	layout1->addWidget(clearOneButton);
-	clearButton = new QPushButton( this );
-	clearButton->setText("");
+	clearButton = new QToolButton( this );
 	clearButton->setIcon(IconManager::instance().loadIcon("16/edit-delete-all.png"));
-	clearButton->setMinimumSize(24, 24);
-	clearButton->setMaximumSize(24, 24);
 	layout1->addWidget(clearButton);
 
 	indentLayout = new QHBoxLayout;

Modified: trunk/Scribus/scribus/ui/tabruler.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24571&path=/trunk/Scribus/scribus/ui/tabruler.h
==============================================================================
--- trunk/Scribus/scribus/ui/tabruler.h	(original)
+++ trunk/Scribus/scribus/ui/tabruler.h	Tue Mar 16 20:44:43 2021
@@ -157,8 +157,8 @@
 	ScrSpinBox* firstLineData { nullptr };
 	ScrSpinBox* leftIndentData { nullptr };
 	ScrSpinBox* rightIndentData { nullptr };
-	QPushButton* clearButton { nullptr };
-	QPushButton* clearOneButton { nullptr };
+	QToolButton* clearButton { nullptr };
+	QToolButton* clearOneButton { nullptr };
 
 	bool   m_haveFirst;
 	double m_docUnitRatio;




More information about the scribus-commit mailing list