void DolphinMainWindow::openContextMenu(const QPoint &pos, const KFileItem &item, const KFileItemList &selectedItems, const QUrl &url)
{
QPointer<DolphinContextMenu> contextMenu = new DolphinContextMenu(this, item, selectedItems, url, &m_fileItemActions);
- contextMenu.data()->exec(pos);
+ contextMenu->exec(pos);
// Delete the menu, unless it has been deleted in its own nested event loop already.
if (contextMenu) {
return m_nameFilter;
}
+ /**
+ * Don't use this. Always @returns an empty list. It only exists to silence moc.
+ */
+ QList<QUrl> filesToSelect() const
+ {
+ return QList<QUrl>();
+ }
+
protected:
/**
* We reimplement openUrl so no need to implement openFile.
* Called by konqueror --select
*/
void setFilesToSelect(const QList<QUrl> &files);
- QList<QUrl> filesToSelect() const
- {
- return QList<QUrl>();
- } // silence moc
bool eventFilter(QObject *, QEvent *) override;
}
}
-KStandardItemListWidget::Layout KStandardItemListWidget::layout() const
-{
- return m_layout;
-}
-
void KStandardItemListWidget::setHighlightEntireRow(bool highlightEntireRow)
{
if (m_highlightEntireRow != highlightEntireRow) {
~KStandardItemListWidget() override;
void setLayout(Layout layout);
- Layout layout() const;
void setHighlightEntireRow(bool highlightEntireRow);
bool highlightEntireRow() const;