MCPcopy Create free account
hub / github.com/KDE/kdevelop / restoreWidgetGeometry

Function restoreWidgetGeometry

kdevplatform/util/shellutils.cpp:34–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace {
33
34class WidgetGeometrySaver : public QObject
35{
36 Q_OBJECT
37public:
38 explicit WidgetGeometrySaver(QWidget& widget, const QString& configGroupName, const QString& configSubgroupName)
39 : QObject(&widget)
40 , m_configGroupName{configGroupName}
41 , m_configSubgroupName{configSubgroupName}
42 {
43 widget.installEventFilter(this);
44 }
45
46 bool restoreWidgetGeometry() const
47 {
48 return widget().restoreGeometry(configGroup().readEntry(entryName(), QByteArray{}));
49 }
50
51 bool eventFilter(QObject* watched, QEvent* event) override
52 {

Callers

nothing calls this directly

Calls 2

readEntryMethod · 0.80
configGroupFunction · 0.70

Tested by

no test coverage detected