Diffstat (limited to 'libopie2/opieui/fileselector/ofileselector.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opieui/fileselector/ofileselector.cpp | 18 |
1 files changed, 12 insertions, 6 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 @@ -68,6 +68,6 @@ namespace Internal { */ static inline QString createNewPath(const QString& base, const QString &ending) { - return base == QString::fromLatin1("/") ? - base + ending : base + "/" + ending; + return base == QString::fromLatin1("/") ? + base + ending : base + "/" + ending; } @@ -289,5 +289,5 @@ QString OFileSelectorItem::key( int id, bool )const { QString ke; - + /* * id = 0 ||id == 1 : Sort By Name but Directories at Top @@ -308,5 +308,5 @@ QString OFileSelectorItem::key( int id, bool )const return ke; }else if(id == 2) { - return text(2).rightJustify(20, '0'); + return text(2).rightJustify(20, '0'); }else return text( id ); @@ -364,4 +364,5 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st btn->setIconSet( Resource::loadIconSet("cardmon/pcmcia") ); + m_fsButton = btn; /* let's fill device parts */ QPopupMenu* pop = new QPopupMenu(this); @@ -381,6 +382,5 @@ OFileViewFileListView::OFileViewFileListView( QWidget* parent, const QString& st m_fsPop = pop; - - btn->setPopup( pop ); + connect(btn,SIGNAL(pressed()),this,SLOT(slotFSpressed())); lay->addWidget( box ); @@ -406,4 +406,10 @@ 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() { |