Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 210 → Rev 211

/trunk/DBViewer/mainwindow.ui
6,8 → 6,8
<rect>
<x>0</x>
<y>0</y>
<width>1103</width>
<height>710</height>
<width>1106</width>
<height>705</height>
</rect>
</property>
<property name="windowTitle">
27,7 → 27,7
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
279,6 → 279,129
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="label_5">
<property name="font">
<font>
<pointsize>16</pointsize>
<weight>75</weight>
<italic>true</italic>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Добавить услови в фильтр:</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QComboBox" name="comboBox_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>20</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<item>
<property name="text">
<string>И</string>
</property>
</item>
<item>
<property name="text">
<string>ИЛИ</string>
</property>
</item>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Поле класса</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_2"/>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_10">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Условие</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_3">
<item>
<property name="text">
<string>=</string>
</property>
</item>
<item>
<property name="text">
<string>&gt;</string>
</property>
</item>
<item>
<property name="text">
<string>&lt;</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_11">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Значение для сравнения</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit"/>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
</layout>
294,7 → 417,7
<rect>
<x>0</x>
<y>0</y>
<width>1103</width>
<width>1106</width>
<height>27</height>
</rect>
</property>
/trunk/DBViewer/treedelegateform.ui
1,7 → 1,5
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<author/>
<comment/>
<exportmacro/>
<class>TreeDelegateForm</class>
<widget class="QWidget" name="TreeDelegateForm">
<property name="geometry">
8,14 → 6,55
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
<width>704</width>
<height>202</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QWidget" name="verticalLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>681</width>
<height>181</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLineEdit" name="lineEdit"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QComboBox" name="comboBox"/>
</item>
<item>
<widget class="QComboBox" name="comboBox_2"/>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_2"/>
</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>
</widget>
</widget>
<pixmapfunction/>
<resources/>
<connections/>
</ui>
/trunk/DBViewer/mainwindow.cpp
194,7 → 194,7
// // // parents.last()->appendChild(new QTreeWidgetItem(columnData, parents.last()));
QTreeWidgetItem* itm_tmp;
itm_tmp = new QTreeWidgetItem( parents.last());
itm_tmp->setFlags(Qt::ItemIsEditable | Qt::ItemIsEnabled);
itm_tmp->setFlags(Qt::ItemIsEditable | Qt::ItemIsSelectable | Qt::ItemIsEnabled);
 
/*
QLineEdit * edit_line;
/trunk/DBViewer/treedelegateform.cpp
6,6 → 6,7
ui(new Ui::TreeDelegateForm)
{
ui->setupUi(this);
//this->layout()->addChildLayout(ui->verticalLayout);
}
 
TreeDelegateForm::~TreeDelegateForm()
/trunk/DBViewer/treedelegateform.h
14,13 → 14,14
public:
explicit TreeDelegateForm(QWidget *parent = 0);
~TreeDelegateForm();
void setClassID(QString new_class_id){class_id = new_class_id;} //устанавливаем идентификатор класса, к объектам которого будет применяться фильтр
 
void setClassID(QString new_class_id){class_id = new_class_id;} //óñòàíàâëèâàåò èäåíòèôèêàòîð êëàññà, ê îáúåêòàì êîòîðîãî áóäåò ïðèìåíÿòüñÿ ôèëüòð
QString classID(){return class_id;}//âîçâðàùàåò èäåíòèôèêàòîð êëàññà
private:
Ui::TreeDelegateForm *ui;
QString class_id; //идентификатор класса, к объектам которого будет применяться фильтр
QString class_id; //èäåíòèôèêàòîð êëàññà, ê îáúåêòàì êîòîðîãî áóäåò ïðèìåíÿòüñÿ ôèëüòð
 
 
 
};
 
#endif // TREEDELEGATEFORM_H