[SCM] ktp-accounts-kcm packaging branch, master, updated. debian/15.12.1-1-1157-gc4589c5
Maximiliano Curia
maxy at moszumanska.debian.org
Fri May 27 23:57:04 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=14352bd
The following commit has been merged in the master branch:
commit 14352bddf16d1ca04672cc55329976ef57090700
Author: George Goldberg <grundleborg at googlemail.com>
Date: Sun Jan 25 14:05:36 2009 +0000
Add widgets to the main page of the KCM.
svn path=/trunk/playground/network/telepathy-accounts-kcm/; revision=916541
---
src/CMakeLists.txt | 1 +
src/kcm-telepathy-accounts.cpp | 1 +
src/kcm-telepathy-accounts.h | 9 ++++-
src/main-widget.ui | 85 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 95 insertions(+), 1 deletion(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index badaf8b..0006c0f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -9,6 +9,7 @@ set (telepathy_accounts_kcm_SRCS
)
kde4_add_ui_files (telepathy_accounts_kcm_SRCS
+ main-widget.ui
)
kde4_add_plugin (kcm_telepathy_accounts
diff --git a/src/kcm-telepathy-accounts.cpp b/src/kcm-telepathy-accounts.cpp
index 00a296b..c6b7038 100644
--- a/src/kcm-telepathy-accounts.cpp
+++ b/src/kcm-telepathy-accounts.cpp
@@ -31,6 +31,7 @@ KCMTelepathyAccounts::KCMTelepathyAccounts(QWidget *parent, const QVariantList&
: KCModule(KCMTelepathyAccountsFactory::componentData(), parent, args)
{
// TODO: Implement me!
+ setupUi(this);
}
KCMTelepathyAccounts::~KCMTelepathyAccounts()
diff --git a/src/kcm-telepathy-accounts.h b/src/kcm-telepathy-accounts.h
index 219d0bd..43cf26f 100644
--- a/src/kcm-telepathy-accounts.h
+++ b/src/kcm-telepathy-accounts.h
@@ -21,9 +21,13 @@
#ifndef TELEPATHY_ACCOUNTS_KCM_KCM_TELEPATHY_ACCOUNTS_H
#define TELEPATHY_ACCOUNTS_KCM_KCM_TELEPATHY_ACCOUNTS_H
+#include "ui_main-widget.h"
+
#include <kcmodule.h>
-class KCMTelepathyAccounts : public KCModule
+class MainWidget;
+
+class KCMTelepathyAccounts : public KCModule, Ui::MainWidget
{
Q_OBJECT
@@ -32,6 +36,9 @@ public:
const QVariantList& args = QVariantList());
~KCMTelepathyAccounts();
+private:
+ MainWidget *m_mainWidget;
+
};
#endif // header guard
diff --git a/src/main-widget.ui b/src/main-widget.ui
new file mode 100644
index 0000000..5ad7905
--- /dev/null
+++ b/src/main-widget.ui
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>MainWidget</class>
+ <widget class="QWidget" name="MainWidget">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>481</width>
+ <height>377</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Form</string>
+ </property>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="KCategorizedView" name="m_accountsListView"/>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout_2">
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <property name="sizeConstraint">
+ <enum>QLayout::SetFixedSize</enum>
+ </property>
+ <item>
+ <widget class="KPushButton" name="m_addAccountButton">
+ <property name="text">
+ <string>Add Accont</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="KPushButton" name="m_editAccountButton">
+ <property name="text">
+ <string>Edit Account</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="KPushButton" name="m_removeAccountButton">
+ <property name="text">
+ <string>Remove Account</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <customwidgets>
+ <customwidget>
+ <class>KListWidget</class>
+ <extends>QListWidget</extends>
+ <header>klistwidget.h</header>
+ </customwidget>
+ <customwidget>
+ <class>KPushButton</class>
+ <extends>QPushButton</extends>
+ <header>kpushbutton.h</header>
+ </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>
--
ktp-accounts-kcm packaging
More information about the pkg-kde-commits
mailing list