Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 29996af9 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Fix signal/slot

parent 7fce1df5
......@@ -151,7 +151,7 @@ ListView::ListView(QWidget *parent)
setAttribute(Qt::WA_AlwaysShowToolTips, false);
connect(this, SIGNAL(customContextMenuRequested(QPoint)),
SLOT(slotContextMenu(QTreeWidget *,QTreeWidgetItem *,QPoint)));
SLOT(slotContextMenu(QPoint)));
connect(this, SIGNAL(itemDoubleClicked(QTreeWidgetItem *,int)),
SLOT(slotDoubleClicked(QTreeWidgetItem *)));
......@@ -189,9 +189,9 @@ void ListView::slotDoubleClicked(QTreeWidgetItem *item)
}
}
void ListView::slotContextMenu(QTreeWidget * /*listview*/, QTreeWidgetItem *item, const QPoint & /*point*/)
void ListView::slotContextMenu(const QPoint &point)
{
//KF5 FIXME argument
QTreeWidgetItem *item = itemAt(point);
if (item && !item->isSelected()) {
clearSelection();
item->setSelected(true);
......
......@@ -154,7 +154,7 @@ Q_SIGNALS:
void visibleSizeChanged();
private Q_SLOTS:
void slotContextMenu(QTreeWidget *, QTreeWidgetItem *item, const QPoint &point);
void slotContextMenu(const QPoint &point);
void slotDoubleClicked(QTreeWidgetItem *item);
/**
* To enable smooth scroll to focus on highlighted items when they are highlighted
......
......@@ -1243,7 +1243,7 @@ void Item::setHeight(int)
}
minHeight = (minHeight * vis) / Private::visibilityFoldSteps;
}
this->setHeight(minHeight);
//QTreeWidgetItem::setHeight(minHeight);
}
int Item::width(const QFontMetrics &, const QTreeWidget *lv, int c) const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment