void QextFileSystemController::goUp() { Q_D(QextFileSystemController); if ( d->canGoUp() ) { goDir( QDir( d->fsModel->rootPath() + QDir::separator() + ".." ) ); } // end if cangoup }
FileTransferDlg::FileTransferDlg(FileMessage *msg) : FileTransferBase(NULL, "filetransfer", false, WDestructiveClose) { m_msg = msg; SET_WNDPROC("filetransfer") setIcon(Pict("file")); setButtonsPict(this); setCaption((msg->getFlags() & MESSAGE_RECEIVED) ? i18n("Receive file") : i18n("Send file")); if (msg->getFlags() & MESSAGE_RECEIVED) m_dir = m_msg->m_transfer->dir(); disableWidget(edtTime); disableWidget(edtEstimated); disableWidget(edtSpeed); btnGo->hide(); btnGo->setIconSet(*Icon("file")); msg->m_transfer->setNotify(new FileTransferDlgNotify(this)); sldSpeed->setValue(m_msg->m_transfer->speed()); connect(sldSpeed, SIGNAL(valueChanged(int)), this, SLOT(speedChanged(int))); m_time = 0; m_timer = new QTimer(this); connect(m_timer, SIGNAL(timeout()), this, SLOT(timeout())); m_timer->start(1000); printTime(); m_bTransfer = false; m_transferTime = 0; m_speed = 0; m_nAverage = 0; m_files = 0; m_bytes = 0; m_fileSize = 0; m_totalBytes = 0; m_totalSize = 0; m_state = FileTransfer::Unknown; connect(btnCancel, SIGNAL(clicked()), this, SLOT(close())); chkClose->setChecked(CorePlugin::m_plugin->getCloseTransfer()); connect(chkClose, SIGNAL(toggled(bool)), this, SLOT(closeToggled(bool))); connect(btnGo, SIGNAL(clicked()), this, SLOT(goDir())); }
void QextFileSystemController::goHome() { goDir(QDir::home()); }