fix view source window title.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20143 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-09-08 16:31:28 +00:00
parent f044fc3dd0
commit 252b170b6d
3 changed files with 6 additions and 3 deletions

View File

@ -6,6 +6,7 @@
* \author John Levon
* \author Angus Leeming
* \author Bo Peng
* \author Abdelrazak Younes
*
* Full author contact details are available in file CREDITS.
*/

View File

@ -35,12 +35,12 @@ class DockView : public QDockWidget, public Dialog
public:
DockView(
GuiViewBase & parent, ///< the main window where to dock.
std::string const & title, ///< Window title (shown in the top title bar).
std::string const & name, ///< dialog identifier.
Qt::DockWidgetArea area = Qt::LeftDockWidgetArea, ///< Position of the dock (and also drawer)
Qt::WindowFlags flags = 0
)
: QDockWidget(toqstr(title), &parent, flags),
Dialog(parent, title)
: QDockWidget(&parent, flags),
Dialog(parent, name)
{
if (flags & Qt::Drawer)
setFeatures(QDockWidget::NoDockWidgetFeatures);
@ -48,6 +48,7 @@ public:
setController(controller);
widget_.reset(new MyWidget(*controller));
setWidget(widget_.get());
setWindowTitle(widget_->windowTitle());
parent.addDockWidget(area, this);
}

View File

@ -29,6 +29,7 @@ GuiViewSourceDialog::GuiViewSourceDialog(ControlViewSource & controller)
highlighter_(new LaTeXHighlighter(document_))
{
setupUi(this);
setWindowTitle();
connect(viewFullSourceCB, SIGNAL(clicked()),
this, SLOT(update()));