mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
f044fc3dd0
commit
252b170b6d
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,7 @@ GuiViewSourceDialog::GuiViewSourceDialog(ControlViewSource & controller)
|
||||
highlighter_(new LaTeXHighlighter(document_))
|
||||
{
|
||||
setupUi(this);
|
||||
setWindowTitle();
|
||||
|
||||
connect(viewFullSourceCB, SIGNAL(clicked()),
|
||||
this, SLOT(update()));
|
||||
|
Loading…
Reference in New Issue
Block a user