Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
widgetboxtreewidget.cpp File Reference

(94a41d036d53b28e8638d13eae40875869af6123)

#include "widgetboxtreewidget.h"
#include "widgetboxcategorylistview.h"
#include <iconloader_p.h>
#include <sheet_delegate_p.h>
#include <QtDesigner/private/ui4_p.h>
#include <qdesigner_utils_p.h>
#include <pluginmanager_p.h>
#include <QtDesigner/abstractformeditor.h>
#include <QtDesigner/abstractdnditem.h>
#include <QtDesigner/abstractsettings.h>
#include <QtUiPlugin/customwidget.h>
#include <QtWidgets/qapplication.h>
#include <QtWidgets/qheaderview.h>
#include <QtWidgets/qmenu.h>
#include <QtWidgets/qscrollbar.h>
#include <QtWidgets/qtreewidget.h>
#include <QtGui/qaction.h>
#include <QtGui/qactiongroup.h>
#include <QtGui/qevent.h>
#include <QtCore/qfile.h>
#include <QtCore/qtimer.h>
#include <QtCore/qdebug.h>
+ Include dependency graph for widgetboxtreewidget.cpp:

Go to the source code of this file.

Namespaces

namespace  qdesigner_internal
 Auxiliary methods to store/retrieve settings.
 

Enumerations

enum  TopLevelRole {
  NORMAL_ITEM , SCRATCHPAD_ITEM , CUSTOM_ITEM , NORMAL_ITEM ,
  SCRATCHPAD_ITEM , CUSTOM_ITEM
}
 
enum  TopLevelRole {
  NORMAL_ITEM , SCRATCHPAD_ITEM , CUSTOM_ITEM , NORMAL_ITEM ,
  SCRATCHPAD_ITEM , CUSTOM_ITEM
}
 

Functions

static void setTopLevelRole (TopLevelRole tlr, QTreeWidgetItem *item)
 
static TopLevelRole topLevelRole (const QTreeWidgetItem *item)
 
static QString qdesigner_internal::msgXmlError (const QString &fileName, const QXmlStreamReader &r)
 
static int qdesigner_internal::findCategory (const QString &name, const WidgetBoxTreeWidget::CategoryList &list)
 
static bool qdesigner_internal::isValidIcon (const QIcon &icon)
 

Variables

static constexpr auto widgetBoxRootElementC = "widgetbox"_L1
 
static constexpr auto wbWidgetElementC = "widget"_L1
 
static constexpr auto uiElementC = "ui"_L1
 
static constexpr auto categoryElementC = "category"_L1
 
static constexpr auto categoryEntryElementC = "categoryentry"_L1
 
static constexpr auto wbNameAttributeC = "name"_L1
 
static constexpr auto typeAttributeC = "type"_L1
 
static constexpr auto iconAttributeC = "icon"_L1
 
static constexpr auto defaultTypeValueC = "default"_L1
 
static constexpr auto customValueC = "custom"_L1
 
static constexpr auto iconPrefixC = "__qt_icon__"_L1
 
static constexpr auto scratchPadValueC = "scratchpad"_L1
 
static constexpr auto invisibleNameC = "[invisible]"_L1
 
static constexpr auto qdesigner_internal::widgetBoxSettingsGroupC = "WidgetBox"_L1
 
static constexpr auto qdesigner_internal::widgetBoxExpandedKeyC = "Closed categories"_L1
 
static constexpr auto qdesigner_internal::widgetBoxViewModeKeyC = "View mode"_L1
 

Enumeration Type Documentation

◆ TopLevelRole [1/2]

Enumerator
NORMAL_ITEM 
SCRATCHPAD_ITEM 
CUSTOM_ITEM 
NORMAL_ITEM 
SCRATCHPAD_ITEM 
CUSTOM_ITEM 

Definition at line 53 of file widgetboxtreewidget.cpp.

◆ TopLevelRole [2/2]

Enumerator
NORMAL_ITEM 
SCRATCHPAD_ITEM 
CUSTOM_ITEM 
NORMAL_ITEM 
SCRATCHPAD_ITEM 
CUSTOM_ITEM 

Definition at line 53 of file widgetboxtreewidget.cpp.

Function Documentation

◆ setTopLevelRole()

static void setTopLevelRole ( TopLevelRole tlr,
QTreeWidgetItem * item )
static

Definition at line 55 of file widgetboxtreewidget.cpp.

◆ topLevelRole()

static TopLevelRole topLevelRole ( const QTreeWidgetItem * item)
static

Definition at line 60 of file widgetboxtreewidget.cpp.

Variable Documentation

◆ categoryElementC

static constexpr auto categoryElementC = "category"_L1
staticconstexpr

Definition at line 42 of file widgetboxtreewidget.cpp.

◆ categoryEntryElementC

static constexpr auto categoryEntryElementC = "categoryentry"_L1
staticconstexpr

Definition at line 43 of file widgetboxtreewidget.cpp.

◆ customValueC

static constexpr auto customValueC = "custom"_L1
staticconstexpr

Definition at line 48 of file widgetboxtreewidget.cpp.

◆ defaultTypeValueC

static constexpr auto defaultTypeValueC = "default"_L1
staticconstexpr

Definition at line 47 of file widgetboxtreewidget.cpp.

◆ iconAttributeC

static constexpr auto iconAttributeC = "icon"_L1
staticconstexpr

Definition at line 46 of file widgetboxtreewidget.cpp.

◆ iconPrefixC

static constexpr auto iconPrefixC = "__qt_icon__"_L1
staticconstexpr

Definition at line 49 of file widgetboxtreewidget.cpp.

◆ invisibleNameC

static constexpr auto invisibleNameC = "[invisible]"_L1
staticconstexpr

Definition at line 51 of file widgetboxtreewidget.cpp.

◆ scratchPadValueC

static constexpr auto scratchPadValueC = "scratchpad"_L1
staticconstexpr

Definition at line 50 of file widgetboxtreewidget.cpp.

◆ typeAttributeC

static constexpr auto typeAttributeC = "type"_L1
staticconstexpr

Definition at line 45 of file widgetboxtreewidget.cpp.

◆ uiElementC

static constexpr auto uiElementC = "ui"_L1
staticconstexpr

Definition at line 41 of file widgetboxtreewidget.cpp.

◆ wbNameAttributeC

static constexpr auto wbNameAttributeC = "name"_L1
staticconstexpr

Definition at line 44 of file widgetboxtreewidget.cpp.

◆ wbWidgetElementC

static constexpr auto wbWidgetElementC = "widget"_L1
staticconstexpr

Definition at line 40 of file widgetboxtreewidget.cpp.

◆ widgetBoxRootElementC

static constexpr auto widgetBoxRootElementC = "widgetbox"_L1
staticconstexpr

Definition at line 39 of file widgetboxtreewidget.cpp.