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

Carlo Vanini <silh...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kdelibs-b...@kde.org
            Summary|Window size is not adjusted |KMessageBox::detailedError
                   |to show the error message   |window size is not adjusted
                   |after I click "Details >>"  |to show the error message
                   |button                      |after I click "Details >>"
                   |                            |button
          Component|muon                        |general
           Assignee|echidna...@kubuntu.org      |cf...@kde.org
            Product|muon                        |frameworks-kwidgetsaddons
            Version|unspecified                 |5.44.0

--- Comment #1 from Carlo Vanini <silh...@gmail.com> ---
Minimal working example

main.cpp
========

#include <QApplication>
#include <KMessageBox>

int main(int argc, char **argv) {
    QApplication app(argc, argv);

    KMessageBox::detailedError(nullptr,
                               QStringLiteral("This is a short text"),
                               QStringLiteral("Here are the full and long
details about the error, or whaterver did happen to the running
application.\n")
                              );
    app.processEvents();
    return 0;
}

CMakeLists.txt
==============

cmake_minimum_required(VERSION 2.6)
project(test)
find_package(ECM REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 5.7.0 REQUIRED CONFIG COMPONENTS Widgets)
find_package(KF5 REQUIRED WidgetsAddons)
add_executable(test main.cpp)
target_link_libraries(test KF5::WidgetsAddons)

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

Reply via email to