MCPcopy Create free account
hub / github.com/KDE/kdevelop / MainWindow

Method MainWindow

kdevplatform/shell/mainwindow.cpp:106–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106MainWindow::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
130MainWindow::~ MainWindow()
131{

Callers

nothing calls this directly

Calls 3

setupActionsMethod · 0.45
isEmptyMethod · 0.45
xmlFileMethod · 0.45

Tested by

no test coverage detected