Cross ref item: user can select if xref must be displayed has a table or a contacts list.

Option is found in config dialog under the tab Cross ref.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3033 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-04-28 15:41:58 +00:00
parent 65e16029a1
commit 91552373cf
7 changed files with 273 additions and 57 deletions

View File

@@ -29,6 +29,11 @@ class XRefProperties : public PropertiesInterface
public:
XRefProperties();
enum DisplayHas {
Cross,
Contacts
};
virtual void toSettings (QSettings &settings, const QString = QString()) const;
virtual void fromSettings (const QSettings &settings, const QString = QString());
virtual void toXml (QDomElement &xml_element) const;
@@ -40,8 +45,12 @@ class XRefProperties : public PropertiesInterface
void setShowPowerContac (const bool a) {m_show_power_ctc = a;}
bool showPowerContact () const {return m_show_power_ctc;}
void setDisplayHas (const DisplayHas dh) {m_display = dh;}
DisplayHas displayHas () const {return m_display;}
private:
bool m_show_power_ctc;
DisplayHas m_display;
};
#endif // XREFPROPERTIES_H