mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-07 10:51:45 +00:00
Dolphin: Remove unused code, fix clazy warnings
This commit is contained in:
parent
f8380c50eb
commit
2aa5477ccf
|
@ -1309,7 +1309,7 @@ void DolphinMainWindow::slotWriteStateChanged(bool isFolderWritable)
|
||||||
void DolphinMainWindow::openContextMenu(const QPoint &pos, const KFileItem &item, const KFileItemList &selectedItems, const QUrl &url)
|
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);
|
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.
|
// Delete the menu, unless it has been deleted in its own nested event loop already.
|
||||||
if (contextMenu) {
|
if (contextMenu) {
|
||||||
|
|
|
@ -88,6 +88,14 @@ public:
|
||||||
return m_nameFilter;
|
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:
|
protected:
|
||||||
/**
|
/**
|
||||||
* We reimplement openUrl so no need to implement openFile.
|
* We reimplement openUrl so no need to implement openFile.
|
||||||
|
@ -214,10 +222,6 @@ private Q_SLOTS:
|
||||||
* Called by konqueror --select
|
* Called by konqueror --select
|
||||||
*/
|
*/
|
||||||
void setFilesToSelect(const QList<QUrl> &files);
|
void setFilesToSelect(const QList<QUrl> &files);
|
||||||
QList<QUrl> filesToSelect() const
|
|
||||||
{
|
|
||||||
return QList<QUrl>();
|
|
||||||
} // silence moc
|
|
||||||
|
|
||||||
bool eventFilter(QObject *, QEvent *) override;
|
bool eventFilter(QObject *, QEvent *) override;
|
||||||
|
|
||||||
|
|
|
@ -295,11 +295,6 @@ void KStandardItemListWidget::setLayout(Layout layout)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
KStandardItemListWidget::Layout KStandardItemListWidget::layout() const
|
|
||||||
{
|
|
||||||
return m_layout;
|
|
||||||
}
|
|
||||||
|
|
||||||
void KStandardItemListWidget::setHighlightEntireRow(bool highlightEntireRow)
|
void KStandardItemListWidget::setHighlightEntireRow(bool highlightEntireRow)
|
||||||
{
|
{
|
||||||
if (m_highlightEntireRow != highlightEntireRow) {
|
if (m_highlightEntireRow != highlightEntireRow) {
|
||||||
|
|
|
@ -80,7 +80,6 @@ public:
|
||||||
~KStandardItemListWidget() override;
|
~KStandardItemListWidget() override;
|
||||||
|
|
||||||
void setLayout(Layout layout);
|
void setLayout(Layout layout);
|
||||||
Layout layout() const;
|
|
||||||
|
|
||||||
void setHighlightEntireRow(bool highlightEntireRow);
|
void setHighlightEntireRow(bool highlightEntireRow);
|
||||||
bool highlightEntireRow() const;
|
bool highlightEntireRow() const;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user