MCPcopy Create free account
hub / github.com/KDE/kdiff3 / KDiff3Shell

Method KDiff3Shell

src/kdiff3_shell.cpp:27–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include <KToolBar>
26
27KDiff3Shell::KDiff3Shell(const QString& fn1, const QString& fn2, const QString& fn3)
28{
29 m_widget = new KDiff3App(this, u8"KDiff3App", this, {fn1, fn2, fn3});
30 assert(m_widget);
31 setStandardToolBarMenuEnabled(true);
32
33 setupGUI(Default, "kdiff3_shell.rc");
34 // and a status bar
35 statusBar()->show();
36
37 setCentralWidget(m_widget);
38
39 m_widget->completeInit();
40 chk_connect_a(m_widget, &KDiff3App::createNewInstance, this, &KDiff3Shell::slotNewInstance);
41
42 // apply the saved mainwindow settings, if any, and ask the mainwindow
43 // to automatically save settings if changed: window size, toolbar
44 // position, icon size, etc.
45 setAutoSaveSettings();
46}
47
48KDiff3Shell::~KDiff3Shell() = default;
49

Callers

nothing calls this directly

Calls 2

showMethod · 0.80
completeInitMethod · 0.80

Tested by

no test coverage detected