Changeset View
Changeset View
Standalone View
Standalone View
documentation/qthelp/qthelpconfig.cpp
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Line(s) | 95 | { | |||
---|---|---|---|---|---|
110 | connect(m_configWidget->downButton, &QPushButton::clicked, this, &QtHelpConfig::down); | 110 | connect(m_configWidget->downButton, &QPushButton::clicked, this, &QtHelpConfig::down); | ||
111 | // Table | 111 | // Table | ||
112 | connect(m_configWidget->qchTable, &QTreeWidget::itemSelectionChanged, this, &QtHelpConfig::selectionChanged); | 112 | connect(m_configWidget->qchTable, &QTreeWidget::itemSelectionChanged, this, &QtHelpConfig::selectionChanged); | ||
113 | m_configWidget->qchTable->setColumnHidden(IconColumn, true); | 113 | m_configWidget->qchTable->setColumnHidden(IconColumn, true); | ||
114 | m_configWidget->qchTable->setColumnHidden(GhnsColumn, true); | 114 | m_configWidget->qchTable->setColumnHidden(GhnsColumn, true); | ||
115 | m_configWidget->qchTable->header()->setStretchLastSection(true); | 115 | m_configWidget->qchTable->header()->setStretchLastSection(true); | ||
116 | 116 | | |||
117 | // Add GHNS button | 117 | // Add GHNS button | ||
118 | KNS3::Button *knsButton = new KNS3::Button(i18nc("Allow user to get some API documentation with GHNS", "Get New Documentation"), "kdevelop-qthelp.knsrc", m_configWidget->qchManage); | 118 | KNS3::Button *knsButton = new KNS3::Button(i18nc("Allow user to get some API documentation with GHNS", "Get New Documentation"), "kdevelop-qthelp.knsrc", m_configWidget->boxQchManage); | ||
119 | m_configWidget->verticalLayout->insertWidget(1, knsButton); | 119 | m_configWidget->verticalLayout->insertWidget(1, knsButton); | ||
120 | connect(knsButton, &KNS3::Button::dialogFinished, this, &QtHelpConfig::knsUpdate); | 120 | connect(knsButton, &KNS3::Button::dialogFinished, this, &QtHelpConfig::knsUpdate); | ||
121 | connect(m_configWidget->loadQtDocsCheckBox, &QCheckBox::toggled, this, static_cast<void(QtHelpConfig::*)()>(&QtHelpConfig::changed)); | 121 | connect(m_configWidget->loadQtDocsCheckBox, &QCheckBox::toggled, this, static_cast<void(QtHelpConfig::*)()>(&QtHelpConfig::changed)); | ||
122 | connect(m_configWidget->qchSearchDirButton, &QPushButton::clicked, this, &QtHelpConfig::chooseSearchDir); | 122 | connect(m_configWidget->qchSearchDirButton, &QPushButton::clicked, this, &QtHelpConfig::chooseSearchDir); | ||
123 | connect(m_configWidget->qchSearchDir,&QLineEdit::textChanged, this, &QtHelpConfig::searchDirChanged); | 123 | connect(m_configWidget->qchSearchDir,&QLineEdit::textChanged, this, &QtHelpConfig::searchDirChanged); | ||
124 | 124 | | |||
125 | // Set availability information for QtHelp | 125 | // Set availability information for QtHelp | ||
126 | m_configWidget->messageAvailabilityQtDocs->setCloseButtonVisible(false); | 126 | m_configWidget->messageAvailabilityQtDocs->setCloseButtonVisible(false); | ||
127 | if(plugin->isQtHelpAvailable()) { | 127 | if(plugin->isQtHelpAvailable()) { | ||
128 | m_configWidget->messageAvailabilityQtDocs->setVisible(false); | 128 | m_configWidget->messageAvailabilityQtDocs->setVisible(false); | ||
129 | } else { | 129 | } else { | ||
130 | m_configWidget->messageAvailabilityQtDocs->setText( | 130 | m_configWidget->messageAvailabilityQtDocs->setText( | ||
131 | i18n("The command \"qmake -query\" could not provide a path to a QtHelp file (QCH).")); | 131 | i18n("The command \"qmake -query\" could not provide a path to a QtHelp file (QCH).")); | ||
132 | m_configWidget->loadQtDocsCheckBox->setEnabled(false); | 132 | m_configWidget->loadQtDocsCheckBox->setVisible(false); | ||
133 | } | 133 | } | ||
134 | l->addWidget( w ); | 134 | l->addWidget( w ); | ||
135 | reset(); | 135 | reset(); | ||
136 | selectionChanged(); | 136 | selectionChanged(); | ||
137 | } | 137 | } | ||
138 | 138 | | |||
139 | QtHelpConfig::~QtHelpConfig() | 139 | QtHelpConfig::~QtHelpConfig() | ||
140 | { | 140 | { | ||
▲ Show 20 Lines • Show All 247 Lines • ▼ Show 20 Line(s) | |||||
388 | QString QtHelpConfig::name() const | 388 | QString QtHelpConfig::name() const | ||
389 | { | 389 | { | ||
390 | return i18n("QtHelp Documentation"); | 390 | return i18n("QtHelp Documentation"); | ||
391 | } | 391 | } | ||
392 | 392 | | |||
393 | QIcon QtHelpConfig::icon() const | 393 | QIcon QtHelpConfig::icon() const | ||
394 | { | 394 | { | ||
395 | return QIcon::fromTheme(QStringLiteral("help-contents")); | 395 | return QIcon::fromTheme(QStringLiteral("help-contents")); | ||
396 | } | 396 | } | ||
mwolff: QLatin1String | |||||
mwolff: QStringLiteral |
QLatin1String