Commit ed9cd68c authored by Jakob Leben's avatar Jakob Leben

Qt: better function name

parent 0b49fce1
...@@ -107,7 +107,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent, ...@@ -107,7 +107,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
CONNECT( treeView->header(), customContextMenuRequested( const QPoint & ), CONNECT( treeView->header(), customContextMenuRequested( const QPoint & ),
this, popupSelectColumn( QPoint ) ); this, popupSelectColumn( QPoint ) );
CONNECT( treeView, customContextMenuRequested( const QPoint & ), CONNECT( treeView, customContextMenuRequested( const QPoint & ),
this, playlistPopup( const QPoint & ) ); this, popupPlView( const QPoint & ) );
CONNECT( model, currentChanged( const QModelIndex& ), CONNECT( model, currentChanged( const QModelIndex& ),
this, handleExpansion( const QModelIndex& ) ); this, handleExpansion( const QModelIndex& ) );
...@@ -213,7 +213,7 @@ void StandardPLPanel::popupSelectColumn( QPoint pos ) ...@@ -213,7 +213,7 @@ void StandardPLPanel::popupSelectColumn( QPoint pos )
menu.exec( QCursor::pos() ); menu.exec( QCursor::pos() );
} }
void StandardPLPanel::playlistPopup( const QPoint &point ) void StandardPLPanel::popupPlView( const QPoint &point )
{ {
QAbstractItemView *aView; QAbstractItemView *aView;
if ( treeView->isVisible() ) aView = treeView; if ( treeView->isVisible() ) aView = treeView;
...@@ -312,7 +312,7 @@ void StandardPLPanel::toggleView() ...@@ -312,7 +312,7 @@ void StandardPLPanel::toggleView()
layout->addWidget( iconView, 1, 0, 1, -1 ); layout->addWidget( iconView, 1, 0, 1, -1 );
iconView->setContextMenuPolicy( Qt::CustomContextMenu ); iconView->setContextMenuPolicy( Qt::CustomContextMenu );
CONNECT( iconView, customContextMenuRequested( const QPoint & ), CONNECT( iconView, customContextMenuRequested( const QPoint & ),
this, playlistPopup( const QPoint & ) ); this, popupPlView( const QPoint & ) );
} }
treeView->hide(); treeView->hide();
iconView->show(); iconView->show();
......
...@@ -85,9 +85,9 @@ private slots: ...@@ -85,9 +85,9 @@ private slots:
void search( const QString& searchText ); void search( const QString& searchText );
void popupAdd(); void popupAdd();
void popupSelectColumn( QPoint ); void popupSelectColumn( QPoint );
void popupPlView( const QPoint & );
void toggleColumnShown( int ); void toggleColumnShown( int );
void toggleView(); void toggleView();
void playlistPopup( const QPoint & );
}; };
#endif #endif
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