Редактирование: Qt:Документация 4.3.2/assistant-simpletextviewer
Материал из Wiki.crossplatform.ru
Внимание: Вы не представились системе. Ваш IP-адрес будет записан в историю изменений этой страницы.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
Текущая версия | Ваш текст | ||
Строка 197: | Строка 197: | ||
The only relevant members to observe in the <tt>FindFileDialog</tt> class definition is the private <tt>help()</tt> slot. The slot is connected to the dialog's '''Help''' button, and brings the current Qt Assistant instance to the foreground showing the documentation for the dialog. | The only relevant members to observe in the <tt>FindFileDialog</tt> class definition is the private <tt>help()</tt> slot. The slot is connected to the dialog's '''Help''' button, and brings the current Qt Assistant instance to the foreground showing the documentation for the dialog. | ||
<div id="findfiledialog-class-implementation"></div> | <div id="findfiledialog-class-implementation"></div> | ||
- | ==FindFileDialog Class Implementation== | + | ==FindFileDialog Class Implementation==<source lang="cpp-qt"> FindFileDialog::FindFileDialog(QTextEdit *editor, QAssistantClient *assistant, |
- | <source lang="cpp-qt"> FindFileDialog::FindFileDialog(QTextEdit *editor, QAssistantClient *assistant, | + | |
QWidget *parent) | QWidget *parent) | ||
: QDialog(parent) | : QDialog(parent) | ||
Строка 214: | Строка 213: | ||
The <tt>help()</tt> slot is called when the user clicks the dialog's '''Help''' button. It brings the current Qt Assistant instance to the foreground and shows the application's manual page, using the [[Qt:Документация 4.3.2/qassistantclient#showPage | QAssistantClient::showPage]]() function. | The <tt>help()</tt> slot is called when the user clicks the dialog's '''Help''' button. It brings the current Qt Assistant instance to the foreground and shows the application's manual page, using the [[Qt:Документация 4.3.2/qassistantclient#showPage | QAssistantClient::showPage]]() function. | ||
<div id="summary"></div> | <div id="summary"></div> | ||
- | |||
==Summary== | ==Summary== | ||
In order to make Qt Assistant act as a customized help tool for your application, you must provide your application with a [[Qt:Документация 4.3.2/qassistantclient | QAssistantClient]] object in addition to a [[Qt:Документация 4.3.2/assistant-manual#profiles | Qt Assistant Document Profile]] (<tt>.adp</tt> file) and documentation for the application. | In order to make Qt Assistant act as a customized help tool for your application, you must provide your application with a [[Qt:Документация 4.3.2/qassistantclient | QAssistantClient]] object in addition to a [[Qt:Документация 4.3.2/assistant-manual#profiles | Qt Assistant Document Profile]] (<tt>.adp</tt> file) and documentation for the application. | ||
{{Qt4.3.2_footer}} | {{Qt4.3.2_footer}} |