Commit eab0134f authored by Laurent Montel's avatar Laurent Montel 😁

Allow to show kcrash

parent 948a4260
......@@ -32,6 +32,7 @@ find_package (Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
)
find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS
Crash
Config
ConfigWidgets
DocTools
......@@ -116,6 +117,7 @@ target_link_libraries(kdeinit_kcalc
KF5::I18n
KF5::Notifications
KF5::XmlGui
KF5::Crash
${GMP_LIBRARIES}
${MPFR_LIBRARIES}
)
......
......@@ -46,6 +46,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <KToolBar>
#include <kxmlguifactory.h>
#include <Kdelibs4ConfigMigrator>
#include <KCrash>
#include "kcalc_bitset.h"
#include "kcalc_const_menu.h"
......@@ -2280,7 +2281,7 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char *argv[]) {
* enable high dpi support
*/
app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
KCrash::initialize();
Kdelibs4ConfigMigrator migrate(QLatin1String("kcalc"));
migrate.setConfigFiles(QStringList() << QLatin1String("kcalcrc"));
migrate.setUiFiles(QStringList() << QLatin1String("kcalcui.rc"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment