| 25 | #include <KToolBar> |
| 26 | |
| 27 | KDiff3Shell::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 | |
| 48 | KDiff3Shell::~KDiff3Shell() = default; |
| 49 |
nothing calls this directly
no test coverage detected