[bt-devel] Text window toolbar in Main window

Eeli Kaikkonen eekaikko at mail.student.oulu.fi
Mon Oct 12 15:14:08 MST 2009


You can test a very cool idea by replacing line

addToolBar(mainToolBar());

with

dynamic_cast<QMainWindow*>(this->parent()->parent()->parent()->parent())->addToolBar(mainToolBar());

in CLexiconReadWindow::initView().

What do you say about the general idea? It would need much more work, of
course, but I think it could be very good for e.g. small displays. It
would save space and let the whole toolbar show even if text windows
were narrow.

The implementation would need:

A way to configure and save this, for example in View menu and/or Config
dialog.

If a text window is not active anymore or is closed, toolbar must be
removed from the main window.

When a text window becomes active, its toolbar must replace the previous
toolbar.


  Yours,
	Eeli Kaikkonen (Mr.), Oulu, Finland
	e-mail: eekaikko at mailx.studentx.oulux.fix (with no x)



More information about the bt-devel mailing list