------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=54382 christian.loose@hamburg.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Additional Comments From christian.loose@hamburg.de 2003-02-28 23:17 ------- Subject: KDE_3_1_BRANCH: kdesdk/cervisia CVS commit by cloose: backport fix for BR #54382: Display warning message in remove dialog to make clear that the action will also remove the local copy of the selected files. BTW, is it okay to add new i18n strings to the branch??? CCMAIL: 54382-done@bugs.kde.org M +6 -0 ChangeLog 1.22.2.7 M +21 -0 commitdlg.cpp 1.6.2.2 --- kdesdk/cervisia/ChangeLog #1.22.2.6:1.22.2.7 @@ -1,2 +1,8 @@ +2003-02-28 Christian Loose + + * Fix BR #54382: Display warning message in remove dialog + to make clear that the action will also remove the local + copy of the selected files. + 2003-02-24 Christian Loose --- kdesdk/cervisia/commitdlg.cpp #1.6.2.1:1.6.2.2 @@ -20,4 +20,5 @@ #include #include +#include #include #include @@ -76,4 +77,24 @@ CommitDialog::CommitDialog(ActionType ac listbox->setEnabled(false); + if (action == Remove) + { + QBoxLayout *warningLayout = new QHBoxLayout(this); + + QLabel *warningIcon = new QLabel(this); + KIconLoader *loader = kapp->iconLoader(); + warningIcon->setPixmap(loader->loadIcon("messagebox_warning", KIcon::NoGroup, + KIcon::SizeMedium, KIcon::DefaultState, + 0, true)); + warningLayout->addWidget(warningIcon); + + QLabel *warningText = new QLabel(i18n("This will also remove the files from " + "your local working copy!"), this); + warningLayout->addWidget(warningText); + + layout->addSpacing(5); + layout->addLayout(warningLayout); + layout->addSpacing(5); + } + QFrame *frame = new QFrame(this); frame->setFrameStyle(QFrame::HLine | QFrame::Sunken);