r18724 by fschmid - Fixed Bug #11956: Add a "Close" icon to document tabs

scribus-commit scribus-commit at lists.scribus.net
Mon Jan 13 21:51:53 UTC 2014


Author: fschmid
Date: Mon Jan 13 21:51:53 2014
New Revision: 18724

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18724
Log:
Fixed Bug #11956: Add a "Close" icon to document tabs

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18724&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Mon Jan 13 21:51:53 2014
@@ -378,7 +378,10 @@
 	mdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
 	mdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
 	if (prefsManager->appPrefs.uiPrefs.useTabs)
+	{
 		mdiArea->setViewMode(QMdiArea::TabbedView);
+		mdiArea->setTabsClosable(true);
+	}
 	else
 		mdiArea->setViewMode(QMdiArea::SubWindowView);
 	setCentralWidget( mdiArea );




More information about the scribus-commit mailing list