[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/akonadi/akonadiconsole
From: Volker Krause <vkrause () kde ! org>
Date: 2009-09-10 14:38:40
Message-ID: 1252593520.951672.22192.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1022008 by vkrause:
Show link/unlink rights.
M +1 -1 browserwidget_contentview.ui
M +6 -0 collectionaclpage.cpp
M +47 -32 collectionaclpage.ui
--- trunk/KDE/kdepim/akonadi/akonadiconsole/browserwidget_contentview.ui \
#1022007:1022008 @@ -14,7 +14,7 @@
<item row="0" column="0" colspan="2">
<widget class="KTabWidget" name="mainTabWidget">
<property name="currentIndex">
- <number>4</number>
+ <number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
--- trunk/KDE/kdepim/akonadi/akonadiconsole/collectionaclpage.cpp #1022007:1022008
@@ -36,6 +36,8 @@
ui.changeItem->setChecked( rights & Collection::CanChangeItem );
ui.createItem->setChecked( rights & Collection::CanCreateItem );
ui.deleteItem->setChecked( rights & Collection::CanDeleteItem );
+ ui.linkItem->setChecked( rights & Collection::CanLinkItem );
+ ui.unlinkItem->setChecked( rights & Collection::CanUnlinkItem );
ui.changeCollection->setChecked( rights & Collection::CanChangeCollection );
ui.createCollection->setChecked( rights & Collection::CanCreateCollection );
ui.deleteCollection->setChecked( rights & Collection::CanDeleteCollection );
@@ -56,6 +58,10 @@
rights |= Collection::CanCreateCollection;
if ( ui.deleteCollection->isChecked() )
rights |= Collection::CanDeleteCollection;
+ if ( ui.linkItem->isChecked() )
+ rights |= Collection::CanLinkItem;
+ if ( ui.unlinkItem->isChecked() )
+ rights |= Collection::CanUnlinkItem;
col.setRights( rights );
}
--- trunk/KDE/kdepim/akonadi/akonadiconsole/collectionaclpage.ui #1022007:1022008
@@ -1,7 +1,8 @@
-<ui version="4.0" >
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
<class>CollectionAclPage</class>
- <widget class="QWidget" name="CollectionAclPage" >
- <property name="geometry" >
+ <widget class="QWidget" name="CollectionAclPage">
+ <property name="geometry">
<rect>
<x>0</x>
<y>0</y>
@@ -9,60 +10,74 @@
<height>411</height>
</rect>
</property>
- <layout class="QVBoxLayout" name="verticalLayout" >
+ <layout class="QVBoxLayout" name="verticalLayout">
<item>
- <widget class="QGroupBox" name="groupBox" >
- <property name="title" >
+ <widget class="QGroupBox" name="groupBox">
+ <property name="title">
<string>Item Access Rights</string>
</property>
- <layout class="QHBoxLayout" name="horizontalLayout" >
- <item>
- <widget class="QCheckBox" name="createItem" >
- <property name="text" >
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <widget class="QCheckBox" name="createItem">
+ <property name="text">
<string>Create</string>
</property>
</widget>
</item>
- <item>
- <widget class="QCheckBox" name="changeItem" >
- <property name="text" >
+ <item row="0" column="1">
+ <widget class="QCheckBox" name="changeItem">
+ <property name="text">
<string>Modify</string>
</property>
</widget>
</item>
- <item>
- <widget class="QCheckBox" name="deleteItem" >
- <property name="text" >
+ <item row="0" column="2">
+ <widget class="QCheckBox" name="deleteItem">
+ <property name="text">
<string>Delete</string>
</property>
</widget>
</item>
+ <item row="1" column="0">
+ <widget class="QCheckBox" name="linkItem">
+ <property name="text">
+ <string>Link</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="2">
+ <widget class="QCheckBox" name="unlinkItem">
+ <property name="text">
+ <string>Unlink</string>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
</item>
<item>
- <widget class="QGroupBox" name="groupBox_2" >
- <property name="title" >
+ <widget class="QGroupBox" name="groupBox_2">
+ <property name="title">
<string>Collection Access Rights</string>
</property>
- <layout class="QHBoxLayout" name="horizontalLayout_2" >
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
- <widget class="QCheckBox" name="createCollection" >
- <property name="text" >
+ <widget class="QCheckBox" name="createCollection">
+ <property name="text">
<string>Create</string>
</property>
</widget>
</item>
<item>
- <widget class="QCheckBox" name="changeCollection" >
- <property name="text" >
+ <widget class="QCheckBox" name="changeCollection">
+ <property name="text">
<string>Modify</string>
</property>
</widget>
</item>
<item>
- <widget class="QCheckBox" name="deleteCollection" >
- <property name="text" >
+ <widget class="QCheckBox" name="deleteCollection">
+ <property name="text">
<string>Delete</string>
</property>
</widget>
@@ -71,21 +86,21 @@
</widget>
</item>
<item>
- <widget class="QLabel" name="label" >
- <property name="text" >
- <string><b>Note: </b>These values are provided by the corresponding \
backend and are not intended to be changed by you, so be warned if something breaks \
when changing them nevertheless!</string> + <widget class="QLabel" name="label">
+ <property name="text">
+ <string><b>Note: </b>These values are provided by the \
corresponding backend and are not intended to be changed by you, so be warned if \
something breaks when changing them nevertheless!</string> </property>
- <property name="wordWrap" >
+ <property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
- <spacer name="verticalSpacer" >
- <property name="orientation" >
+ <spacer name="verticalSpacer">
+ <property name="orientation">
<enum>Qt::Vertical</enum>
</property>
- <property name="sizeHint" stdset="0" >
+ <property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>210</height>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic