remove amps from kguiitems in message boxes, let KDE handle shortcuts
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102034
This commit is contained in:
parent
54def83c4e
commit
7ebfbdb597
|
@ -384,7 +384,7 @@ void ApplyProgressDialog::saveReport()
|
|||
if (fileName.isEmpty())
|
||||
return;
|
||||
|
||||
if (!QFile::exists(fileName) || KMessageBox::warningContinueCancel(this, i18nc("@info", "Do you want to overwrite the existing file <filename>%1</filename>?", fileName), i18nc("@title:window", "Overwrite Existing File?"), KGuiItem(i18nc("@action:button", "&Overwrite File")), KStandardGuiItem::cancel()) == KMessageBox::Continue)
|
||||
if (!QFile::exists(fileName) || KMessageBox::warningContinueCancel(this, i18nc("@info", "Do you want to overwrite the existing file <filename>%1</filename>?", fileName), i18nc("@title:window", "Overwrite Existing File?"), KGuiItem(i18nc("@action:button", "Overwrite File")), KStandardGuiItem::cancel()) == KMessageBox::Continue)
|
||||
{
|
||||
QFile file(fileName);
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
|||
i18ncp("@info", "<para>Do you really want to quit the application?</para><para>There is still an operation pending.</para>",
|
||||
"<para>Do you really want to quit the application?</para><para>There are still %1 operations pending.</para>", numPendingOperations()),
|
||||
i18nc("@title:window", "Discard Pending Operations and Quit?"),
|
||||
KGuiItem(i18nc("@action:button", "&Quit <application>%1</application>", KGlobal::mainComponent().aboutData()->programName())),
|
||||
KGuiItem(i18nc("@action:button", "Quit <application>%1</application>", KGlobal::mainComponent().aboutData()->programName())),
|
||||
KStandardGuiItem::cancel(), "reallyQuit") == KMessageBox::Cancel)
|
||||
{
|
||||
event->ignore();
|
||||
|
@ -618,7 +618,7 @@ void MainWindow::onRefreshDevices()
|
|||
"<para>Do you really want to rescan the devices?</para>"
|
||||
"<para><warning>This will also clear the list of pending operations.</warning></para>"),
|
||||
i18nc("@title:window", "Really Rescan the Devices?"),
|
||||
KGuiItem(i18nc("@action:button", "&Rescan Devices")),
|
||||
KGuiItem(i18nc("@action:button", "Rescan Devices")),
|
||||
KStandardGuiItem::cancel(), "reallyRescanDevices") == KMessageBox::Continue)
|
||||
{
|
||||
scanDevices();
|
||||
|
@ -637,7 +637,7 @@ void MainWindow::onApplyAllOperations()
|
|||
"<para>Do you really want to apply the pending operations listed below?</para>"
|
||||
"<para><warning>This will permanently modify your disks.</warning></para>"),
|
||||
opList, i18nc("@title:window", "Apply Pending Operations?"),
|
||||
KGuiItem(i18nc("@action:button", "&Apply Pending Operations")),
|
||||
KGuiItem(i18nc("@action:button", "Apply Pending Operations")),
|
||||
KStandardGuiItem::cancel()) == KMessageBox::Continue)
|
||||
{
|
||||
Log() << i18nc("@info/plain", "Applying operations...");
|
||||
|
@ -678,7 +678,7 @@ void MainWindow::onClearAllOperations()
|
|||
if (KMessageBox::warningContinueCancel(this,
|
||||
i18nc("@info", "Do you really want to clear the list of pending operations?"),
|
||||
i18nc("@title:window", "Clear Pending Operations?"),
|
||||
KGuiItem(i18nc("@action:button", "&Clear Pending Operations")),
|
||||
KGuiItem(i18nc("@action:button", "Clear Pending Operations")),
|
||||
KStandardGuiItem::cancel(), "reallyClearPendingOperations") == KMessageBox::Continue)
|
||||
{
|
||||
Log() << i18nc("@info/plain", "Clearing the list of pending operations.");
|
||||
|
@ -879,7 +879,7 @@ void MainWindow::onExportPartitionTable()
|
|||
if (fileName.isEmpty())
|
||||
return;
|
||||
|
||||
if (QFile::exists(fileName) && KMessageBox::warningContinueCancel(this, i18nc("@info", "Do you want to overwrite the existing file <filename>%1</filename>?", fileName), i18nc("@title:window", "Overwrite Existing File?"), KGuiItem(i18nc("@action:button", "&Overwrite File")), KStandardGuiItem::cancel()) != KMessageBox::Continue)
|
||||
if (QFile::exists(fileName) && KMessageBox::warningContinueCancel(this, i18nc("@info", "Do you want to overwrite the existing file <filename>%1</filename>?", fileName), i18nc("@title:window", "Overwrite Existing File?"), KGuiItem(i18nc("@action:button", "Overwrite File")), KStandardGuiItem::cancel()) != KMessageBox::Continue)
|
||||
return;
|
||||
|
||||
QFile file(fileName);
|
||||
|
|
|
@ -523,7 +523,7 @@ void PartitionManagerWidget::onDeletePartition(bool shred)
|
|||
"Do you really want to delete the partition that is currently in the clipboard? "
|
||||
"It will no longer be available for pasting after it has been deleted."),
|
||||
i18nc("@title:window", "Really Delete Partition in the Clipboard?"),
|
||||
KGuiItem(i18nc("@action:button", "&Delete It")),
|
||||
KGuiItem(i18nc("@action:button", "Delete It")),
|
||||
KStandardGuiItem::cancel(), "reallyDeleteClipboardPartition") == KMessageBox::Cancel)
|
||||
return;
|
||||
|
||||
|
@ -707,7 +707,7 @@ void PartitionManagerWidget::onBackupPartition()
|
|||
if (fileName.isEmpty())
|
||||
return;
|
||||
|
||||
if (!QFile::exists(fileName) || KMessageBox::warningContinueCancel(this, i18nc("@info", "Do you want to overwrite the existing file <filename>%1</filename>?", fileName), i18nc("@title:window", "Overwrite Existing File?"), KGuiItem(i18nc("@action:button", "&Overwrite File")), KStandardGuiItem::cancel()) == KMessageBox::Continue)
|
||||
if (!QFile::exists(fileName) || KMessageBox::warningContinueCancel(this, i18nc("@info", "Do you want to overwrite the existing file <filename>%1</filename>?", fileName), i18nc("@title:window", "Overwrite Existing File?"), KGuiItem(i18nc("@action:button", "Overwrite File")), KStandardGuiItem::cancel()) == KMessageBox::Continue)
|
||||
operationStack().push(new BackupOperation(*selectedDevice(), *selectedPartition(), fileName));
|
||||
}
|
||||
|
||||
|
|
|
@ -312,8 +312,8 @@ void PartPropsDialog::onFilesystemChanged(int)
|
|||
i18nc("@info", "<para><warning>You are about to lose all data on partition <filename>%1</filename>.</warning></para>"
|
||||
"<para>Changing the file system on a partition already on disk will erase all its contents. If you continue now and apply the resulting operation in the main window, all data on <filename>%1</filename> will unrecoverably be lost.</para>", partition().deviceNode()),
|
||||
i18nc("@title:window", "Really Recreate <filename>%1</filename> with File System %2?", partition().deviceNode(), dialogWidget().fileSystem().currentText()),
|
||||
KGuiItem(i18nc("@action:button", "&Change the File System")),
|
||||
KGuiItem(i18nc("@action:button", "&Do Not Change the File System")), "reallyChangeFileSystem") == KMessageBox::Continue)
|
||||
KGuiItem(i18nc("@action:button", "Change the File System")),
|
||||
KGuiItem(i18nc("@action:button", "Do Not Change the File System")), "reallyChangeFileSystem") == KMessageBox::Continue)
|
||||
{
|
||||
setDirty();
|
||||
updateHideAndShow();
|
||||
|
@ -334,8 +334,8 @@ void PartPropsDialog::onRecreate(int state)
|
|||
i18nc("@info", "<para><warning>You are about to lose all data on partition <filename>%1</filename>.</warning></para>"
|
||||
"<para>Recreating a file system will erase all its contents. If you continue now and apply the resulting operation in the main window, all data on <filename>%1</filename> will unrecoverably be lost.</para>", partition().deviceNode()),
|
||||
i18nc("@title:window", "Really Recreate File System on <filename>%1</filename>?", partition().deviceNode()),
|
||||
KGuiItem(i18nc("@action:button", "&Recreate the File System")),
|
||||
KGuiItem(i18nc("@action:button", "&Do Not Recreate the File System")), "reallyRecreateFileSystem") == KMessageBox::Continue))
|
||||
KGuiItem(i18nc("@action:button", "Recreate the File System")),
|
||||
KGuiItem(i18nc("@action:button", "Do Not Recreate the File System")), "reallyRecreateFileSystem") == KMessageBox::Continue))
|
||||
{
|
||||
setDirty();
|
||||
setWarnFileSystemChange();
|
||||
|
|
|
@ -124,7 +124,7 @@ void TreeLog::onSaveLog()
|
|||
{
|
||||
QFile file(fileName);
|
||||
|
||||
if (QFile::exists(fileName) && KMessageBox::warningContinueCancel(this, i18nc("@info", "Do you want to overwrite the existing file <filename>%1</filename>?", fileName), i18nc("@title:window", "Overwrite Existing File?"), KGuiItem(i18nc("@action:button", "&Overwrite File")), KStandardGuiItem::cancel()) != KMessageBox::Continue)
|
||||
if (QFile::exists(fileName) && KMessageBox::warningContinueCancel(this, i18nc("@info", "Do you want to overwrite the existing file <filename>%1</filename>?", fileName), i18nc("@title:window", "Overwrite Existing File?"), KGuiItem(i18nc("@action:button", "Overwrite File")), KStandardGuiItem::cancel()) != KMessageBox::Continue)
|
||||
return;
|
||||
|
||||
if (!file.open(QFile::WriteOnly | QFile::Truncate))
|
||||
|
|
Loading…
Reference in New Issue