minor change

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4260 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun 2015-11-14 10:44:24 +00:00
parent 491652ba35
commit c082dfb797
2 changed files with 6 additions and 18 deletions

View File

@ -83,22 +83,15 @@ ElementsPanel::ElementsPanel(QWidget *parent) :
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 @@ void ElementsPanel::startTitleBlockTemplateDrag(const TitleBlockTemplateLocation
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.
*/

View File

@ -100,7 +100,6 @@ class ElementsPanel : public GenericPanel {
bool matchesFilter(const QTreeWidgetItem *, QString) const;
protected slots:
void firstActivation();
void panelContentChange();
virtual QList<ElementsLocation> elementIntegrated(QETProject *, const ElementsLocation &);