Changeset View
Changeset View
Standalone View
Standalone View
part/overwritedialog.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 35 | { | |||
---|---|---|---|---|---|
46 | } else { | 46 | } else { | ||
47 | m_messageText.setText(i18n("Files with the following paths already exist. Do you want to continue overwriting them?")); | 47 | m_messageText.setText(i18n("Files with the following paths already exist. Do you want to continue overwriting them?")); | ||
48 | m_buttonBox.addButton(QDialogButtonBox::Ok); | 48 | m_buttonBox.addButton(QDialogButtonBox::Ok); | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | connect(&m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); | 51 | connect(&m_buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); | ||
52 | connect(&m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | 52 | connect(&m_buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); | ||
53 | 53 | | |||
54 | foreach (const Archive::Entry *entry, entries) { | 54 | for (const Archive::Entry *entry : entries) { | ||
55 | QListWidgetItem *item = new QListWidgetItem(icons.value(entry->fullPath(NoTrailingSlash)), entry->fullPath(NoTrailingSlash)); | 55 | QListWidgetItem *item = new QListWidgetItem(icons.value(entry->fullPath(NoTrailingSlash)), entry->fullPath(NoTrailingSlash)); | ||
56 | m_entriesList.addItem(item); | 56 | m_entriesList.addItem(item); | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | setLayout(&m_vBoxLayout); | 59 | setLayout(&m_vBoxLayout); | ||
60 | setFixedSize(window()->sizeHint()); | 60 | setFixedSize(window()->sizeHint()); | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | OverwriteDialog::~OverwriteDialog() | 63 | OverwriteDialog::~OverwriteDialog() | ||
64 | { | 64 | { | ||
65 | } | 65 | } |