Introduce bare documentation for the KDE Connect kcm

This commit is contained in:
Aleix Pol 2015-10-19 03:25:17 +02:00
parent c0576f76b1
commit 661fa098d4
5 changed files with 45 additions and 1 deletions

View file

@ -12,6 +12,7 @@ set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DI
find_package(Qt5 5.2 REQUIRED COMPONENTS Quick) find_package(Qt5 5.2 REQUIRED COMPONENTS Quick)
find_package(KF5 REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons IconThemes) find_package(KF5 REQUIRED COMPONENTS I18n ConfigWidgets DBusAddons IconThemes)
find_package(KF5DocTools)
find_package(Qca-qt5 2.1.0 REQUIRED) find_package(Qca-qt5 2.1.0 REQUIRED)
find_package(TelepathyQt5 0.9.5) find_package(TelepathyQt5 0.9.5)
find_package(TelepathyQt5Service 0.9.7) find_package(TelepathyQt5Service 0.9.7)
@ -54,6 +55,9 @@ add_subdirectory(plugins)
add_subdirectory(plasmoid) add_subdirectory(plasmoid)
add_subdirectory(cli) add_subdirectory(cli)
add_subdirectory(fileitemactionplugin) add_subdirectory(fileitemactionplugin)
if(KF5DocTools_FOUND)
add_subdirectory(doc)
endif()
if (TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND) if (TelepathyQt5_FOUND AND TelepathyQt5Service_FOUND)
add_subdirectory(telepathy-cm) add_subdirectory(telepathy-cm)

1
doc/CMakeLists.txt Normal file
View file

@ -0,0 +1 @@
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kdeconnect)

37
doc/index.docbook Normal file
View file

@ -0,0 +1,37 @@
<?xml version="1.0" ?>
<!DOCTYPE article PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN"
"dtd/kdedbx45.dtd" [
<!ENTITY % addindex "IGNORE">
<!ENTITY % English "INCLUDE" > <!-- change language only here -->
]>
<article id="kdeconnect" lang="&language;">
<articleinfo>
<title>KDE Connect</title>
<authorgroup>
<author>&Aleix.Pol;</author>
<!-- TRANS:ROLES_OF_TRANSLATORS -->
</authorgroup>
<date>2015-10-19</date>
<releaseinfo>0.9</releaseinfo>
<keywordset>
<keyword>KDE</keyword>
<keyword>Connect</keyword>
<keyword>phone</keyword>
<keyword>remote</keyword>
<keyword>device</keyword>
<keyword>pair</keyword>
</keywordset>
</articleinfo>
<sect1 id="kdeconnect-kcm">
<title>KDE Connect</title>
<para>You can use this dialog to configure which devices we're paired to. It's useful since it will specify who we're sharing information with.</para>
</sect1>
</article>

View file

@ -85,7 +85,7 @@ KdeConnectKcm::KdeConnectKcm(QWidget *parent, const QVariantList&)
kcmUi->rename_edit->setText(daemon->announcedName()); kcmUi->rename_edit->setText(daemon->announcedName());
setRenameMode(false); setRenameMode(false);
setButtons(KCModule::NoAdditionalButton); setButtons(KCModule::Help | KCModule::NoAdditionalButton);
connect(devicesModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), connect(devicesModel, SIGNAL(dataChanged(QModelIndex,QModelIndex)),
this, SLOT(resetSelection())); this, SLOT(resetSelection()));

View file

@ -91,4 +91,6 @@ X-KDE-Keywords[uk]=Network,Android,Devices,мережа,андроїд,прис
X-KDE-Keywords[x-test]=xxNetworkxx,xxAndroidxx,xxDevicesxx X-KDE-Keywords[x-test]=xxNetworkxx,xxAndroidxx,xxDevicesxx
X-KDE-Keywords[zh_CN]=Network,Android,Devices,,, X-KDE-Keywords[zh_CN]=Network,Android,Devices,,,
X-DocPath=kdeconnect/index.html
Categories=Qt;KDE;X-KDE-settings-kdeconnect; Categories=Qt;KDE;X-KDE-settings-kdeconnect;