Menu

[c54480]: / dockeditor.cpp  Maximize  Restore  History

Download this file

26 lines (21 with data), 541 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "dockeditor.h"
#include "vymmodel.h"
DockEditor::DockEditor () { init (); }
DockEditor::DockEditor ( QString title, QWidget *p, VymModel *m):QDockWidget (title,p)
{
editorTitle=title;
model=m;
init();
}
void DockEditor::init()
{
connect ( this, SIGNAL ( topLevelChanged ( bool ) ),
this, SLOT (changeTopLevel ( bool ) ) );
}
void DockEditor::changeTopLevel (bool topLevel)
{
if (topLevel && model)
setWindowTitle (editorTitle+": "+model->getFileName() );
else
setWindowTitle (editorTitle);
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.