r23925 by jghali - Code cleanup
scribus-commit
scribus-commit at lists.scribus.net
Fri Jul 17 11:31:35 UTC 2020
Author: jghali
Date: Fri Jul 17 11:31:35 2020
New Revision: 23925
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23925
Log:
Code cleanup
Modified:
trunk/Scribus/scribus/ui/sctreewidget.cpp
trunk/Scribus/scribus/ui/sctreewidget.h
Modified: trunk/Scribus/scribus/ui/sctreewidget.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23925&path=/trunk/Scribus/scribus/ui/sctreewidget.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/sctreewidget.cpp (original)
+++ trunk/Scribus/scribus/ui/sctreewidget.cpp Fri Jul 17 11:31:35 2020
@@ -104,7 +104,7 @@
header()->setSectionResizeMode(QHeaderView::Stretch);
viewport()->setBackgroundRole(QPalette::Window);
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
- m_toolbox_mode = false;
+
connect(this, SIGNAL(itemClicked(QTreeWidgetItem*,int)), this, SLOT(handleMousePress(QTreeWidgetItem*)));
}
@@ -148,7 +148,7 @@
void ScTreeWidget::setToolBoxMode(bool enable)
{
- m_toolbox_mode = enable;
+ m_toolboxMode = enable;
}
int ScTreeWidget::addItem(QWidget* widget, const QString& title)
@@ -244,7 +244,7 @@
}
int wide = 0;
int tops = topLevelItemCount();
- if (m_toolbox_mode)
+ if (m_toolboxMode)
{
for (int t = 0; t < tops; t++)
{
Modified: trunk/Scribus/scribus/ui/sctreewidget.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23925&path=/trunk/Scribus/scribus/ui/sctreewidget.h
==============================================================================
--- trunk/Scribus/scribus/ui/sctreewidget.h (original)
+++ trunk/Scribus/scribus/ui/sctreewidget.h Fri Jul 17 11:31:35 2020
@@ -51,6 +51,7 @@
public:
ScTreeWidget(QWidget* pa);
~ScTreeWidget() {}
+
QTreeWidgetItem* addWidget(const QString& title, QWidget* widget);
void setToolBoxMode(bool enable);
int addItem(QWidget* widget, const QString& title);
@@ -68,7 +69,7 @@
void currentChanged2(int);
private:
- bool m_toolbox_mode;
+ bool m_toolboxMode { false };
QHash<int, QTreeWidgetItem*> keySList;
protected:
More information about the scribus-commit
mailing list