mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-31 18:37:30 +01:00
Work on skins.
This commit is contained in:
parent
497be388dd
commit
e8c063d6e4
File diff suppressed because one or more lines are too long
BIN
resources/skins/base/images/checkbox.png
Normal file
BIN
resources/skins/base/images/checkbox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 343 B |
@ -150,22 +150,28 @@ bool FeedsModel::addItem(FeedsModelRootItem *item,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool FeedsModel::editItem(const QModelIndex &index) {
|
||||
// TODO: pokračovat
|
||||
return true;
|
||||
}
|
||||
|
||||
bool FeedsModel::removeItem(const QModelIndex &index) {
|
||||
if (index.isValid()) {
|
||||
QModelIndex parent_index = index.parent();
|
||||
FeedsModelRootItem *deleting_item = itemForIndex(index);
|
||||
FeedsModelRootItem *parent_item = itemForIndex(parent_index);
|
||||
|
||||
beginRemoveRows(parent_index, index.row(), index.row());
|
||||
if (deleting_item->removeItself()) {
|
||||
beginRemoveRows(parent_index, index.row(), index.row());
|
||||
|
||||
if (deleting_item->removeItself() &&
|
||||
parent_item->removeChild(deleting_item)) {
|
||||
// Free deleted item from the memory
|
||||
delete deleting_item;
|
||||
if (parent_item->removeChild(deleting_item)) {
|
||||
// Free deleted item from the memory
|
||||
delete deleting_item;
|
||||
}
|
||||
|
||||
endRemoveRows();
|
||||
}
|
||||
|
||||
endRemoveRows();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -48,6 +48,7 @@ class FeedsModel : public QAbstractItemModel {
|
||||
// Feed/category manipulators.
|
||||
bool addItem(FeedsModelRootItem *item,
|
||||
FeedsModelRootItem *parent);
|
||||
bool editItem(const QModelIndex &index);
|
||||
bool removeItem(const QModelIndex &index);
|
||||
|
||||
// Returns (undeleted) messages for given feeds.
|
||||
|
@ -102,8 +102,8 @@ Authors of this application are NOT responsible for lost data.</string>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>564</width>
|
||||
<height>363</height>
|
||||
<width>100</width>
|
||||
<height>30</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
@ -180,8 +180,8 @@ Authors of this application are NOT responsible for lost data.</string>
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>558</width>
|
||||
<height>337</height>
|
||||
<width>167</width>
|
||||
<height>219</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
@ -785,7 +785,7 @@ Authors of this application are NOT responsible for lost data.</string>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="alternatingRowColors">
|
||||
<bool>true</bool>
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="movement">
|
||||
<enum>QListView::Static</enum>
|
||||
|
Loading…
Reference in New Issue
Block a user