[qet] [4260] minor change |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 4260
Author: blacksun
Date: 2015-11-14 11:44:24 +0100 (Sat, 14 Nov 2015)
Log Message:
-----------
minor change
Modified Paths:
--------------
trunk/sources/elementspanel.cpp
trunk/sources/elementspanel.h
Modified: trunk/sources/elementspanel.cpp
===================================================================
--- trunk/sources/elementspanel.cpp 2015-11-13 21:56:28 UTC (rev 4259)
+++ trunk/sources/elementspanel.cpp 2015-11-14 10:44:24 UTC (rev 4260)
@@ -83,22 +83,15 @@
qp.setColor(QPalette::HighlightedText, Qt::black);
setPalette(qp);
- // we handle double click on items ourselves
- connect(
- this,
- SIGNAL(itemDoubleClicked(QTreeWidgetItem *, int)),
- this,
- SLOT(slot_doubleClick(QTreeWidgetItem *, int))
- );
+ // we handle double click on items ourselves
+ connect(this, &ElementsPanel::itemDoubleClicked, this, &ElementsPanel::slot_doubleClick);
+ connect(this, &GenericPanel::firstActivated, [this]() {QTimer::singleShot(250, this, SLOT(reload()));});
+ connect(this, &ElementsPanel::panelContentChanged, this, &ElementsPanel::panelContentChange);
- connect(this, SIGNAL(firstActivated()), this, SLOT(firstActivation()));
- connect(this, SIGNAL(panelContentChanged()), this, SLOT(panelContentChange()));
-
- // emet un signal au lieu de gerer son menu contextuel
+ //Emit a signal instead au manage is own context menu
setContextMenuPolicy(Qt::CustomContextMenu);
- setElementsCache(QETApp::collectionCache());
-
+ setElementsCache(QETApp::collectionCache());
}
/**
@@ -343,10 +336,6 @@
drag -> start(Qt::CopyAction);
}
-void ElementsPanel::firstActivation() {
- QTimer::singleShot(250, this, SLOT(reload()));
-}
-
/**
Ensure the filter is applied again after the panel content has changed.
*/
Modified: trunk/sources/elementspanel.h
===================================================================
--- trunk/sources/elementspanel.h 2015-11-13 21:56:28 UTC (rev 4259)
+++ trunk/sources/elementspanel.h 2015-11-14 10:44:24 UTC (rev 4260)
@@ -100,7 +100,6 @@
bool matchesFilter(const QTreeWidgetItem *, QString) const;
protected slots:
- void firstActivation();
void panelContentChange();
virtual QList<ElementsLocation> elementIntegrated(QETProject *, const ElementsLocation &);