lyx_mirror/src/frontends/qt4
Bo Peng be8a8c302c InsetListings: rename Number style to Line numbering, as suggested by Uwe, bug 3621
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18368 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-16 13:57:58 +00:00
..
ui InsetListings: rename Number style to Line numbering, as suggested by Uwe, bug 3621 2007-05-16 13:57:58 +00:00
Action.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
Action.h Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
alert_pimpl.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
BulletsModule.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
BulletsModule.h code cosmetics whitespace, unneeded lyx:: qualification, indentation, unneeded destructors and the like 2007-04-25 16:39:21 +00:00
ChangeLog rename LColor into Color 2007-04-26 17:34:20 +00:00
CheckedLineEdit.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
CheckedLineEdit.h Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
ColorCache.cpp I guess Windows folks are not too happy with files named color.h and Color.h 2007-04-26 19:21:38 +00:00
ColorCache.h rename LColor into Color 2007-04-26 17:34:20 +00:00
Dialogs.cpp Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog. 2007-05-09 19:11:42 +00:00
DockView.h Present for Bo: Cleanup ViewSource and make it a DockWidget. 2007-03-25 01:25:29 +00:00
EmptyTable.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
EmptyTable.h Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
FileDialog.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
FloatPlacement.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
FloatPlacement.h
GuiApplication.cpp * LyX::addFileToLoad(): new method for double-clicked file icons on MacOS. 2007-05-04 17:20:53 +00:00
GuiApplication.h rename LColor into Color 2007-04-26 17:34:20 +00:00
GuiClipboard.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
GuiClipboard.h Fix bug 2138: copy and paste should preserve formatting between different 2007-01-13 18:29:50 +00:00
GuiFontLoader.cpp rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
GuiFontLoader.h rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
GuiFontMetrics.cpp Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
GuiFontMetrics.h Cache char right bearings 2007-03-21 23:13:32 +00:00
GuiImplementation.cpp Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
GuiImplementation.h Clean up quit code. 2006-12-02 17:39:31 +00:00
GuiSelection.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
GuiSelection.h code cosmetics whitespace, unneeded lyx:: qualification, indentation, unneeded destructors and the like 2007-04-25 16:39:21 +00:00
GuiView.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
GuiView.h Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
GuiWorkArea.cpp rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
GuiWorkArea.h Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
IconPalette.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
IconPalette.h Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
InsertTableWidget.cpp Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
InsertTableWidget.h
KeySymbol.cpp rename LyXKeySym into KeySymbol 2007-04-27 08:43:38 +00:00
LengthCombo.cpp rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
LengthCombo.h rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
LyXFileDialog.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
LyXFileDialog.h Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
Makefile.am Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog. 2007-05-09 19:11:42 +00:00
Makefile.dialogs Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog. 2007-05-09 19:11:42 +00:00
PanelStack.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
PanelStack.h Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
pch.h
QAbout.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QAbout.h merge QAbout and QAboutDialog 2007-04-24 11:32:09 +00:00
QBibitem.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QBibitem.h more dialog merging 2007-04-25 08:42:22 +00:00
QBibtex.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
QBibtex.h more dialog merging 2007-04-25 08:42:22 +00:00
QBox.cpp rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
QBox.h merge QBox and QBoxDialog 2007-04-24 10:56:22 +00:00
QBranch.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QBranch.h more dialog merging 2007-04-25 08:42:22 +00:00
QBranches.cpp Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
QBranches.h * src/frontends/qt4/QBranches.C: 2006-11-04 15:08:53 +00:00
QChanges.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QChanges.h more dialog merging 2007-04-25 10:25:37 +00:00
QCharacter.cpp rename LColor into Color 2007-04-26 17:34:20 +00:00
QCharacter.h rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
QCitation.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QCitation.h Cleanup and polish of the Citation dialog: 2007-03-25 01:32:12 +00:00
QCitationDialog.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QCitationDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QCommandBuffer.cpp Implement shortcut (M-x) to hide the minibuffer 2007-04-29 08:58:09 +00:00
QCommandBuffer.h Implement shortcut (M-x) to hide the minibuffer 2007-04-29 08:58:09 +00:00
QCommandEdit.cpp Implement shortcut (M-x) to hide the minibuffer 2007-04-29 08:58:09 +00:00
QCommandEdit.h Implement shortcut (M-x) to hide the minibuffer 2007-04-29 08:58:09 +00:00
QDelimiterDialog.cpp rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
QDelimiterDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QDialogView.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QDialogView.h It seems that commit 17167 was not enough to ensure that the proper hide/show/update methods are called. 2007-02-15 10:16:35 +00:00
QDocument.cpp restore changed() connection that vanished in revision 18307 with the creation of the PreambleModule class. 2007-05-14 16:54:27 +00:00
QDocument.h Fix gcc warning and be 64 bit clean. 2007-05-14 16:41:50 +00:00
QErrorList.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QErrorList.h more dialog merging 2007-04-25 10:25:37 +00:00
QERT.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QERT.h merge QERT and QERTDialog 2007-04-24 13:47:33 +00:00
QExternal.cpp Fix bug similar to 3377 by Ozgur Ugras BARAN. 2007-05-14 12:43:17 +00:00
QExternal.h more dialog merging 2007-04-25 08:42:22 +00:00
QFloat.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QFloat.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QFloatDialog.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QFloatDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QFontExample.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QFontExample.h Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QGraphics.cpp rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
QGraphics.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QGraphicsDialog.cpp Fix bug 3377 by Ozgur Ugras BARAN: 2007-05-11 14:25:25 +00:00
QGraphicsDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QGraphicsUi.h
QInclude.cpp InsetListings: properly clear values of widgets when jumping between insets 2007-05-15 02:37:59 +00:00
QInclude.h Add support for listings package. Two listings command \lstinline, \lstinputlisting and an environment \lstlisting are supported, along with preamble \lstset. \lstinputlisting is implemented through Include dialog, and the other two are implemented with a new inset listings, along with its dialog. 2007-05-09 19:11:42 +00:00
QIndex.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QIndex.h code cosmetics whitespace, unneeded lyx:: qualification, indentation, unneeded destructors and the like 2007-04-25 16:39:21 +00:00
QKeySymbol.cpp rename LyXKeySym into KeySymbol 2007-04-27 08:43:38 +00:00
QKeySymbol.h rename LyXKeySym into KeySymbol 2007-04-27 08:43:38 +00:00
QLImage.cpp Rename files in src/support, step one. 2007-04-26 05:12:52 +00:00
QLImage.h Next step of true unicode filenames: Use support::FileName instead of 2006-11-26 21:30:39 +00:00
QListings.cpp InsetListings: properly clear values of widgets when jumping between insets 2007-05-15 02:37:59 +00:00
QListings.h InsetListings: Enhanced listings dialog, more than 10 widgets are added to handle common listings parameters. 2007-05-13 04:06:37 +00:00
qlkey.h
QLMenubar.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QLMenubar.h code cosmetics whitespace, unneeded lyx:: qualification, indentation, unneeded destructors and the like 2007-04-25 16:39:21 +00:00
QLog.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QLog.h more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QLPainter.cpp * QLPainter: antialias edges of primitives only if text is antialiased. 2007-05-04 09:24:44 +00:00
QLPainter.h rename LyXFont to Font except in tex2lyx 2007-04-29 18:17:15 +00:00
QLPopupMenu.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QLPopupMenu.h Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
QLPrintDialog.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QLPrintDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QLToolbar.cpp Fix bug 3508: 2007-05-06 07:26:51 +00:00
QLToolbar.h Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
QMathMatrixDialog.cpp QMathMatrixDialog.cpp: fix part of bug 3475 2007-05-07 18:30:41 +00:00
QMathMatrixDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QNomencl.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QNomencl.h more dialog merging 2007-04-25 10:57:54 +00:00
QNote.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QNote.h more dialog merging 2007-04-25 10:57:54 +00:00
QParagraph.cpp Fix for bug 3524: Indent checkbox is enabled even when paragraphs are marked 2007-05-08 15:35:44 +00:00
QParagraph.h resolve the layout.h <=> Layout.h conflict 2007-04-29 22:04:32 +00:00
QPrefs.cpp Problem: When canceling the preferences dialog after changing a color then the icon in the colors list is not reverted after reopening the dialog. Moreover when pressing apply later then the color is really changed. 2007-05-09 20:16:31 +00:00
QPrefs.h Problem: When canceling the preferences dialog after changing a color then the icon in the colors list is not reverted after reopening the dialog. Moreover when pressing apply later then the color is really changed. 2007-05-09 20:16:31 +00:00
QPrint.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QPrint.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
QRef.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QRef.h code cosmetics whitespace, unneeded lyx:: qualification, indentation, unneeded destructors and the like 2007-04-25 16:39:21 +00:00
QSearch.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QSearch.h merge QSearch and QSearchDialog 2007-04-24 13:27:23 +00:00
QSendto.cpp Rename .C ==> .cpp for files in src, part one 2007-04-26 04:41:58 +00:00
QSendto.h more dialog merging 2007-04-25 10:57:54 +00:00
QSetBorder.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QSetBorder.h Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QShowFile.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QShowFile.h more Foo/FooDialog merge 2007-04-24 19:37:34 +00:00
QSpellchecker.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QSpellchecker.h merge QSpellChecker and QSpellcheckerDialog 2007-04-24 15:32:14 +00:00
Qt2BC.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
Qt2BC.h code cosmetics whitespace, unneeded lyx:: qualification, indentation, unneeded destructors and the like 2007-04-25 16:39:21 +00:00
qt_helpers.cpp rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
qt_helpers.h rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
QTabular.cpp rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
QTabular.h merge the tabular/gui related files 2007-04-24 17:46:08 +00:00
QTabularCreate.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QTabularCreate.h merge the tabular/gui related files 2007-04-24 17:46:08 +00:00
QTexinfo.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QTexinfo.h merge QTexinfo and QTexinfoDialog 2007-04-24 15:10:14 +00:00
QThesaurus.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QThesaurus.h merge QThesaurus and QThesaurusDialog 2007-04-24 14:35:15 +00:00
QToc.cpp Fix assertion with LOF and LOT by transfering the test from TocWidget::select() to QToc::getCurrentIndex(). 2007-05-15 18:01:22 +00:00
QToc.h Fix bugs 3528 and 3534 by Ozgur Ugras BARAN and myself: 2007-05-10 16:25:11 +00:00
qtTimeout.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
qtTimeout.h
QURLDialog.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QURLDialog.h renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
QViewSource.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
QViewSource.h merge QViewSource and QViewSourceDialog 2007-04-24 14:08:53 +00:00
QVSpace.cpp rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
QVSpace.h merge QVSpace and QVSpaceDialog 2007-04-24 12:02:27 +00:00
QWrap.cpp rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00
QWrap.h merge QWrapDialog and QWrap 2007-04-24 14:59:51 +00:00
README renaming in frontends/qt4/ui: s/Q//g 2007-04-24 08:56:28 +00:00
socket_callback.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
socket_callback.h
TocModel.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
TocModel.h Toc Slider fixes from Ugras Baran. 2006-11-25 22:16:22 +00:00
TocWidget.cpp Fix assertion with LOF and LOT by transfering the test from TocWidget::select() to QToc::getCurrentIndex(). 2007-05-15 18:01:22 +00:00
TocWidget.h From Ozgur Ugras BARAN: Fix bug 3529 2007-05-15 11:26:24 +00:00
UrlView.cpp Rename .C ==> .cpp for files in src/frontends/qt4, part two 2007-04-26 03:53:51 +00:00
UrlView.h While working on bug 3227, I noticed that from()->show() called QDialog::show() instead of QIndexDialog::show(), hence the bug. While I solved this bug differently, I believe that some other bugs like this one might appear. So I removed the cast in QView<GUIDialog>::form() and included the dialogs where needed. 2007-02-13 18:27:46 +00:00
Validator.cpp Last (?) batch of renames: 2007-04-28 20:44:46 +00:00
Validator.h rename/merge LyXLength related stuff 2007-04-28 12:58:49 +00:00

This file contains some do's and dont's for the Qt4 frontend.

General rules
-------------

Every editable field that affects the state of the dialog contents
from LyX's point of view should connect its xxxChanged() signal to
a the dialog's changed_adaptor() slot, which in turn should call
form_->changed(). If you are using a more complicated thing anyway,
then remember to call form_->changed() at the end (if it has changed !)

Every non-trivial widget should have a tooltip. If you don't know
what to write, write "FIXME", and it can fixed later. Don't be afraid
to use QWhatsThis too, but this must be done in the derived class's
constructor, and use _("..."). Non-trivial means that things like "OK"
/must not/ have a tooltip.

moc is incredibly stupid and sometimes you need a fully qualified
"std::string" for .connect() statements to work. Be very, very careful.

Remember to check tab order on a dialog (third icon, with blue bars in designer).

Remember to check sensible resizing behaviour on a dialog.

Remember to use Edit->Check Accelerators

If necessary, you should override Qt2Base::isValid() for determining the validity
of the current dialog's contents.

OK/Apply/Restore/Close should be connected in the derived class's constructor
to call form_->slotOK() etc. Refer to close/cancel as close in the source.

Override update_contents() to update the dialog, not update(), and build_dialog(),
not build(). Only these functions may change dialog widgets that may emit changed()
during initialisation, to prevent the button controller from changing its state.

Never call buttoncontroller functions directly from dialogs. In general, you
should use Qt2Base::changed() in all circumstances. However, if you must call
the buttoncontroller, make sure to respect Qt2Base::updating_

Naming conventions
------------------

QFoo.[Ch]              The file that interacts with the controller
QFooDialog.[Ch]        The implementation of the dialog, derived from the generated files
ui/FooDialog.ui       The designer file
ui/FooDialogBase.[Ch] Generated files from FooDialog.ui

slots should be named e.g. slotFooClicked(), slotFooSelected(), where foo is the name
of the widget.

Widgets should be named like "fooXX", where XX is one of the following
widget types :

CB - check box
CO - combo box
ED - line edit
GB - group box
LA - label
LC - LengthCombo
LV - QListView
ML - QTextBrowser
PB - push button
RB - radio button
SB - spin box
SL - slider
TE - text edit
TW - tree widget (FIXME: also TV in some files)


Stuff to be aware of
--------------------

The connect statement in Qt is a macro and its arguments does not follow
the C++ standard as it should. Using the construct "Type const &" as
argument will lead to runtime-errors, use "const Type &" instead.

ex.

--right--

	connect(list, SIGNAL(selected(const QString &)),
		this, SLOT(complete_selected(const QString &)));

--wrong--

	connect(list, SIGNAL(selected(QString const &)),
		this, SLOT(complete_selected(QString const &)));

Qt, Unicode, and LyX
--------------------

LyX uses a different encoding (UCS4) than Qt (UTF16), therefore there are a
number of conversion functions in qt_helpers.[Ch]. Read the doxygen
documentation for details when to use which function.

Additionally, you should follow these simple rules :

o Use qt_() not _() in code
o Use the conversion functions of qt_helpers.h, NOT .latin1() / .c_str() etc.