| 104 | } |
| 105 | |
| 106 | MainWindow::MainWindow( Sublime::Controller *parent, Qt::WindowFlags flags ) |
| 107 | : Sublime::MainWindow( parent, flags ) |
| 108 | { |
| 109 | QDBusConnection::sessionBus().registerObject( QStringLiteral("/kdevelop/MainWindow"), |
| 110 | this, QDBusConnection::ExportScriptableSlots ); |
| 111 | |
| 112 | setAcceptDrops( true ); |
| 113 | |
| 114 | setObjectName( QStringLiteral("MainWindow") ); |
| 115 | d_ptr = new MainWindowPrivate(this); |
| 116 | |
| 117 | Q_D(MainWindow); |
| 118 | |
| 119 | setStandardToolBarMenuEnabled( true ); |
| 120 | d->setupActions(); |
| 121 | |
| 122 | if( !ShellExtension::getInstance()->xmlFile().isEmpty() ) |
| 123 | { |
| 124 | setXMLFile( ShellExtension::getInstance() ->xmlFile() ); |
| 125 | } |
| 126 | |
| 127 | menuBar()->setCornerWidget(new AreaDisplay(this), Qt::TopRightCorner); |
| 128 | } |
| 129 | |
| 130 | MainWindow::~ MainWindow() |
| 131 | { |
nothing calls this directly
no test coverage detected