https://bugs.kde.org/show_bug.cgi?id=424658

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|plasma-widget               |general
            Summary|Buttons of the dialog to    |KStandardGuiItem::yes() and
                   |confirm clipboard cleaning  |KStandardGuiItem::no()
                   |show unnecessary tooltips   |display pointless tooltips
                   |on mouseover                |that mirror the buttons'
                   |                            |visible text
           Assignee|[email protected]         |[email protected]
             Status|REPORTED                    |CONFIRMED
            Version|5.19.3                      |5.80.0
            Product|klipper                     |frameworks-kwidgetsaddons
                 CC|                            |[email protected],
                   |                            |[email protected]
     Ever confirmed|0                           |1

--- Comment #2 from Nate Graham <[email protected]> ---
This is a standard KMessageBox::questionYesNo() with no fancy additions; moving
to kwidgetsaddons.

Code is:

void Klipper::slotAskClearHistory()
{
    int clearHist = KMessageBox::questionYesNo(nullptr,
                                               i18n("Really delete entire
clipboard history?"),
                                               i18n("Delete clipboard
history?"),
                                               KStandardGuiItem::yes(),
                                               KStandardGuiItem::no(),
                                              
QStringLiteral("really_clear_history"),
                                               KMessageBox::Dangerous);
    if (clearHist == KMessageBox::Yes) {
        history()->slotClear();
        saveHistory();
    }
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to