summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opieui/fileselector/ofileselector.cpp10
-rw-r--r--libopie2/opieui/fileselector/ofileselector_p.h2
2 files changed, 10 insertions, 2 deletions
diff --git a/libopie2/opieui/fileselector/ofileselector.cpp b/libopie2/opieui/fileselector/ofileselector.cpp
index 74aca96..dbba4b9 100644
--- a/libopie2/opieui/fileselector/ofileselector.cpp
+++ b/libopie2/opieui/fileselector/ofileselector.cpp
@@ -365,2 +365,3 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
+ m_fsButton = btn;
/* let's fill device parts */
@@ -382,4 +383,3 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
-
- btn->setPopup( pop );
+ connect(btn,SIGNAL(pressed()),this,SLOT(slotFSpressed()));
@@ -407,2 +407,8 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st
+void OFileViewFileListView::slotFSpressed()
+{
+ m_fsPop->exec(QPoint( QCursor::pos().x(), QCursor::pos().y()));
+ m_fsButton->setDown(false);
+}
+
OFileViewFileListView::~OFileViewFileListView()
diff --git a/libopie2/opieui/fileselector/ofileselector_p.h b/libopie2/opieui/fileselector/ofileselector_p.h
index 15db916..94216a0 100644
--- a/libopie2/opieui/fileselector/ofileselector_p.h
+++ b/libopie2/opieui/fileselector/ofileselector_p.h
@@ -166,2 +166,3 @@ private slots:
void slotFSActivated(int);
+ void slotFSpressed();
@@ -179,2 +180,3 @@ private:
QToolButton *m_btnNew, *m_btnClose;
+ QToolButton *m_fsButton;
void connectSlots();