r21181 by fschmid -

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 10 07:18:56 UTC 2016


Author: fschmid
Date: Sun Apr 10 07:18:56 2016
New Revision: 21181

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21181
Log:
Fixed Bug #11624: Scrapbook: name of element is too much summarized
Full name is now visible as Tooltip

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

Modified: trunk/Scribus/scribus/ui/scrapbookpalette.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21181&path=/trunk/Scribus/scribus/ui/scrapbookpalette.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/scrapbookpalette.cpp	(original)
+++ trunk/Scribus/scribus/ui/scrapbookpalette.cpp	Sun Apr 10 07:18:56 2016
@@ -674,6 +674,7 @@
 			p.drawPixmap(30 - itf.value().Preview.width() / 2, 30 - itf.value().Preview.height() / 2, itf.value().Preview);
 			p.end();
 			QListWidgetItem *item = new QListWidgetItem(QIcon(pm), itf.key(), this);
+			item->setToolTip(itf.key());
 			item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled);
 			itf.value().widgetItem = item;
 		}
@@ -690,6 +691,7 @@
 			p.drawPixmap(30 - itf.value().Preview.width() / 2, 30 - itf.value().Preview.height() / 2, itf.value().Preview);
 			p.end();
 			QListWidgetItem *item = new QListWidgetItem(QIcon(pm), itf.key(), this);
+			item->setToolTip(itf.key());
 			itf.value().widgetItem = item;
 		}
 	}
@@ -1277,6 +1279,7 @@
 	p.drawPixmap(30 - pm.width() / 2, 30 - pm.height() / 2, pm);
 	p.end();
 	QListWidgetItem *item = new QListWidgetItem(QIcon(pm), nam, bv);
+	item->setToolTip(nam);
 	bv->objectMap[nam].widgetItem = item;
 	if (bv == tempBView)
 	{
@@ -1421,6 +1424,7 @@
 	else
 		return;
 	ite->setText(nam);
+	ite->setToolTip(nam);
 	ObjData = activeBView->objectMap[OldName].Data;
 	ObjPreview = activeBView->objectMap[OldName].Preview;
 	QDir d = QDir();
@@ -1661,6 +1665,7 @@
 		p.drawPixmap(30 - pm.width() / 2, 30 - pm.height() / 2, pm);
 		p.end();
 		QListWidgetItem *item = new QListWidgetItem(QIcon(pm2), nam, activeBView);
+		item->setToolTip(nam);
 		activeBView->objectMap[nam].widgetItem = item;
 		if (isImage)
 			item->setHidden(conf_HideImages->isChecked());
@@ -1762,6 +1767,7 @@
 	p.drawPixmap(30 - pm.width() / 2, 30 - pm.height() / 2, pm);
 	p.end();
 	QListWidgetItem *item = new QListWidgetItem(QIcon(pm2), nam, activeBView);
+	item->setToolTip(nam);
 	activeBView->objectMap[nam].widgetItem = item;
 	delete pre;
 	if (Frame3->currentIndex() == 1)
@@ -1839,6 +1845,7 @@
 	p.drawPixmap(30 - pm.width() / 2, 30 - pm.height() / 2, pm);
 	p.end();
 	QListWidgetItem *item = new QListWidgetItem(QIcon(pm2), nam, tempBView);
+	item->setToolTip(nam);
 	tempBView->objectMap[nam].widgetItem = item;
 	delete pre;
 	if (tempBView->objectMap.count() > PrefsManager::instance()->appPrefs.scrapbookPrefs.numScrapbookCopies)
@@ -1925,6 +1932,7 @@
 	p.drawPixmap(30 - pm.width() / 2, 30 - pm.height() / 2, pm);
 	p.end();
 	QListWidgetItem *item = new QListWidgetItem(QIcon(pm2), nam, actBView);
+	item->setToolTip(nam);
 	actBView->objectMap[nam].widgetItem = item;
 	delete pre;
 	reloadLib(actBView->ScFilename);




More information about the scribus-commit mailing list