Changeset View
Changeset View
Standalone View
Standalone View
ktorrent/dialogs/torrentcreatordlg.cpp
Context not available. | |||||
54 | adjustSize(); | 54 | adjustSize(); | ||
---|---|---|---|---|---|
55 | loadGroups(); | 55 | loadGroups(); | ||
56 | 56 | | |||
57 | m_url->setMode(KFile::File | KFile::ExistingOnly | KFile::LocalOnly | KFile::Directory); | 57 | //m_url->setMode(KFile::File | KFile::ExistingOnly | KFile::LocalOnly | KFile::Directory); | ||
58 | //by default set directory | ||||
59 | m_url->setMode(KFile::ExistingOnly | KFile::LocalOnly | KFile::Directory); | ||||
60 | m_directory->setChecked(true); | ||||
58 | m_dht_tab->setEnabled(false); | 61 | m_dht_tab->setEnabled(false); | ||
59 | 62 | | |||
60 | connect(m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); | 63 | connect(m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); | ||
61 | connect(m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | 64 | connect(m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | ||
62 | 65 | | |||
66 | connect(m_directory, &QRadioButton::clicked, this, &TorrentCreatorDlg::selectDirectory); | ||||
67 | connect(m_file, &QRadioButton::clicked, this, &TorrentCreatorDlg::selectFile); | ||||
68 | | ||||
63 | connect(m_dht, &QCheckBox::toggled, this, &TorrentCreatorDlg::dhtToggled); | 69 | connect(m_dht, &QCheckBox::toggled, this, &TorrentCreatorDlg::dhtToggled); | ||
64 | 70 | | |||
65 | // tracker box stuff | 71 | // tracker box stuff | ||
Context not available. | |||||
428 | m_progress->setValue(mktor->getCurrentChunk()); | 434 | m_progress->setValue(mktor->getCurrentChunk()); | ||
429 | } | 435 | } | ||
430 | 436 | | |||
437 | void TorrentCreatorDlg::selectFile() | ||||
438 | { | ||||
439 | m_url->setMode(KFile::File | KFile::ExistingOnly | KFile::LocalOnly); | ||||
440 | } | ||||
441 | | ||||
442 | void TorrentCreatorDlg::selectDirectory() | ||||
443 | { | ||||
444 | m_url->setMode(KFile::ExistingOnly | KFile::LocalOnly | KFile::Directory); | ||||
445 | } | ||||
446 | | ||||
431 | } | 447 | } | ||
Context not available. |