mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Remove some unused methods
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4933 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -77,20 +77,6 @@ ElementsPanel::ElementsPanel(QWidget *parent) :
|
||||
ElementsPanel::~ElementsPanel() {
|
||||
}
|
||||
|
||||
/**
|
||||
Gere l'entree d'un drag'n drop. L'evenement est accepte si les donnees
|
||||
fournies contiennent un type MIME representant une categorie ou un element
|
||||
QET.
|
||||
@param e QDragEnterEvent decrivant l'entree du drag'n drop
|
||||
*/
|
||||
void ElementsPanel::dragEnterEvent(QDragEnterEvent *e) {
|
||||
if (e -> mimeData() -> hasFormat("application/x-qet-category-uri")) {
|
||||
e -> acceptProposedAction();
|
||||
} else if (e -> mimeData() -> hasFormat("application/x-qet-element-uri")) {
|
||||
e -> acceptProposedAction();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Gere le debut des drag'n drop
|
||||
@param supportedActions Les actions supportees
|
||||
@@ -181,20 +167,6 @@ QTreeWidgetItem *ElementsPanel::updateTemplateItem(QTreeWidgetItem *tb_template_
|
||||
return(item);
|
||||
}
|
||||
|
||||
/**
|
||||
@return true if \a item matches the current filter, false otherwise
|
||||
*/
|
||||
bool ElementsPanel::matchesCurrentFilter(const QTreeWidgetItem *item) const {
|
||||
if (!item) return(false);
|
||||
|
||||
// no filter => we consider the item matches
|
||||
if (filter_.isEmpty()) return(true);
|
||||
|
||||
bool item_matches = item -> text(0).contains(filter_, Qt::CaseInsensitive);
|
||||
|
||||
return(item_matches);
|
||||
}
|
||||
|
||||
/**
|
||||
@return true if \a item matches the filter, false otherwise
|
||||
*/
|
||||
@@ -215,7 +187,6 @@ bool ElementsPanel::matchesFilter(const QTreeWidgetItem *item, QString filter) c
|
||||
* @param reload_collections true for read all collections since their sources (files, projects ...)
|
||||
*/
|
||||
void ElementsPanel::reload(bool reload_collections) {
|
||||
|
||||
Q_UNUSED(reload_collections);
|
||||
|
||||
QIcon system_icon(":/ico/16x16/qet.png");
|
||||
|
||||
Reference in New Issue
Block a user