提交 e9fcd546 编写于 作者: 丁劲犇's avatar 丁劲犇 😸

Tab have their own icons, plugins' prop page tab-bar item should display their...

Tab have their own icons, plugins' prop page tab-bar item should display their icons, not only text names.
上级 662aae57
......@@ -129,10 +129,11 @@ bool osm_frame_widget::eventFilter(QObject *obj, QEvent *event)
Qt::WindowFlags flg = wig->windowFlags();
flg &= ~(Qt::WindowMinMaxButtonsHint|Qt::WindowStaysOnTopHint|Qt::Window );
wig->setWindowFlags(flg);
ui->tabWidget_main->addTab(
int idx = ui->tabWidget_main->addTab(
wig,
"Map"
);
ui->tabWidget_main->setTabIcon(idx,wig->windowIcon());
return true;
}
}
......@@ -151,10 +152,11 @@ bool osm_frame_widget::eventFilter(QObject *obj, QEvent *event)
Qt::WindowFlags flg = wig->windowFlags();
flg &= ~(Qt::WindowMinMaxButtonsHint|Qt::WindowStaysOnTopHint|Qt::Window );
wig->setWindowFlags(flg);
ui->tabWidget_main->addTab(
int idx = ui->tabWidget_main->addTab(
wig,
m_PropPageslayer[obj]->get_name()
);
ui->tabWidget_main->setTabIcon(idx,wig->windowIcon());
}
return true;
}
......@@ -180,7 +182,8 @@ bool osm_frame_widget::AppendLayer(QString SLName,layer_interface * interface)
{
m_layerPropPages[ci] = wig;
m_PropPageslayer[wig] = ci;
ui->tabWidget_main->addTab(wig,ci->get_name());
int idx = ui->tabWidget_main->addTab(wig,ci->get_name());
ui->tabWidget_main->setTabIcon(idx,wig->windowIcon());
wig->installEventFilter(this);
}
return true;
......
......@@ -39,22 +39,22 @@
<enum>QTabWidget::South</enum>
</property>
<property name="tabShape">
<enum>QTabWidget::Triangular</enum>
<enum>QTabWidget::Rounded</enum>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<property name="iconSize">
<size>
<width>8</width>
<height>8</height>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="elideMode">
<enum>Qt::ElideLeft</enum>
</property>
<property name="usesScrollButtons">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="documentMode">
<bool>false</bool>
......@@ -66,6 +66,10 @@
<bool>true</bool>
</property>
<widget class="QWidget" name="tab_map">
<attribute name="icon">
<iconset resource="resource/resource.qrc">
<normaloff>:/ui/icons/Folder Online aqua.png</normaloff>:/ui/icons/Folder Online aqua.png</iconset>
</attribute>
<attribute name="title">
<string>Map</string>
</attribute>
......
......@@ -13,6 +13,10 @@
<property name="windowTitle">
<string>geoMarker</string>
</property>
<property name="windowIcon">
<iconset resource="resources.qrc">
<normaloff>:/icons/default.png</normaloff>:/icons/default.png</iconset>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_13">
<property name="spacing">
<number>3</number>
......@@ -769,6 +773,8 @@
</item>
</layout>
</widget>
<resources/>
<resources>
<include location="resources.qrc"/>
</resources>
<connections/>
</ui>
......@@ -13,6 +13,10 @@
<property name="windowTitle">
<string>Grid</string>
</property>
<property name="windowIcon">
<iconset resource="resources.qrc">
<normaloff>:/icons/Brush_Ruler_Alt.png</normaloff>:/icons/Brush_Ruler_Alt.png</iconset>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册