r19957 by craig - Adjust page combo width

scribus-commit scribus-commit at lists.scribus.net
Sun Mar 29 20:24:10 UTC 2015


Author: craig
Date: Sun Mar 29 20:24:10 2015
New Revision: 19957

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19957
Log:
Adjust page combo width

Modified:
    trunk/Scribus/scribus/scribus.css
    trunk/Scribus/scribus/ui/pageselector.cpp

Modified: trunk/Scribus/scribus/scribus.css
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19957&path=/trunk/Scribus/scribus/scribus.css
==============================================================================
--- trunk/Scribus/scribus/scribus.css (original)
+++ trunk/Scribus/scribus/scribus.css Sun Mar 29 20:24:10 2015
@@ -1,6 +1,11 @@
+/*
+some variables included here, to be replaced in code, eg for icon directory locations so we can remain platform independent here
+eg. ___downArrow___
+*/
+
 /* page selector comboboxes */
 
-PageSelector QComboBox { border: 1px solid gray; height: 20px; }
+PageSelector QComboBox { border: 1px solid gray; height: 20px; width:2em; }
 PageSelector QComboBox::down-arrow { image: url(___downArrow___); width: 12px; height 12px;}
 PageSelector QComboBox::down-arrow:on { top: 1px; left: 1px; }
 PageSelector QComboBox:editable { background: white; }

Modified: trunk/Scribus/scribus/ui/pageselector.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19957&path=/trunk/Scribus/scribus/ui/pageselector.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/pageselector.cpp (original)
+++ trunk/Scribus/scribus/ui/pageselector.cpp Sun Mar 29 20:24:10 2015
@@ -71,6 +71,7 @@
 	m_pageCombo->setValidator(m_validator);
 	m_pageCombo->setMinimumSize(fontMetrics().width( "9999" )+20, 20);
 	m_pageCombo->setFocusPolicy(Qt::ClickFocus);
+	m_pageCombo->setObjectName("pageCombo");
 	
 	pageCountLabel = new QLabel(PageCountString.arg(m_lastPage), this);
 
@@ -97,7 +98,7 @@
 	PageSelectorLayout->addWidget( startButton );
 	PageSelectorLayout->addWidget( backButton );
 	PageSelectorLayout->addWidget( m_pageCombo );
-	PageSelectorLayout->addWidget(pageCountLabel);
+	PageSelectorLayout->addWidget( pageCountLabel );
 	PageSelectorLayout->addWidget( forwardButton );
 	PageSelectorLayout->addWidget( lastButton );
 




More information about the scribus-commit mailing list