void DirectoryView::slotFolderSelected( QListViewItem *i ) { if (!i || !showDirsOnly()) return; Directory *dir = reinterpret_cast<Directory*>(i); emit folderSelected(dir->fullName()); }
void DirectoryView::slotFolderSelected( QListViewItem *i ) { if ( !i ) return; Directory *dir = (Directory*)i; emit folderSelected( dir->fullName() ); }
PathButton::PathButton(QWidget *parent) : QPushButton(parent), d(new Data) { QPushButton::setText(d->getText()); connect(this, &QPushButton::clicked, this, [=] () { switch (d->mode) { case Folder: { const auto ret = getFolder(); if (!ret.isEmpty()) { emit folderSelected(ret); if (d->editor) d->prop.write(d->editor, ret); } break; } case SingleFile: { const auto ret = getFile(); if (!ret.isEmpty()) { emit fileSelected(ret); if (d->editor) d->prop.write(d->editor, ret); } break; } case MultiFile: { const auto ret = getFiles(); if (!ret.isEmpty()) { emit filesSelected(ret); if (d->editor) d->prop.write(d->editor, ret); } } default: break; } }); }
void WatchFolderAdd::folderButtonClicked() { QDir dir; fileDialog->setDirectory(dir.homePath()+"/"); fileDialog->setFileMode(QFileDialog::DirectoryOnly); connect(fileDialog, SIGNAL(fileSelected(QString)), this, SLOT(folderSelected(QString))); fileDialog->exec(); }
void AudioBrowserScreen::select(int index) { if (listView->isDir(index)) setDir(currDir + "/" + listView->dir(index)); else { emit folderSelected(currDir, false, 0, 0); lower(); } }
bool DirectoryView::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: folderSelected((const QString&)static_QUType_QString.get(_o+1)); break; default: return QListView::qt_emit(_id,_o); } return TRUE; }
bool FolderPage::validatePage() { if (edtAlias_->text().isEmpty()) { QMessageBox::information(this, tr("Wrong Alias"), tr("Please make up an alias for Maverick Poker Bot. You can use the \"Random\" button to generate a random alias automatically.")); edtAlias_->setFocus(); return false; } emit folderSelected(lePath_->text()); return true; }
MusicWindow::MusicWindow(MusicPlayer* player) { ui.setupUi(this); this->player = player; initFolderList(); // SIGNALS connect(ui.folderList, SIGNAL(itemSelectionChanged()), this, SLOT(folderSelected())); connect(ui.fileList, SIGNAL(itemSelectionChanged()), this, SLOT(fileSelected())); }
void AudioBrowserScreen::folderSelect(bool plus) { QString path = currDir; int i = listView->currentItem(); if (listView->isDir(i)) { if (listView->dir(i) == "..") { backFolder(); return; } path += "/" + listView->dir(i); } emit folderSelected(path, plus, 0, 0); lower(); }