Changeset View
Changeset View
Standalone View
Standalone View
Modules/devinfo/soldevice.h
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | 99 | { | |||
---|---|---|---|---|---|
100 | new SolDevice(this, dev); | 100 | new SolDevice(this, dev); | ||
101 | } | 101 | } | ||
102 | 102 | | |||
103 | virtual void refreshName() | 103 | virtual void refreshName() | ||
104 | { | 104 | { | ||
105 | setDefaultDeviceText(); | 105 | setDefaultDeviceText(); | ||
106 | } | 106 | } | ||
107 | 107 | | |||
108 | QString udi() const; | 108 | QString udi() const; | ||
anthonyfieroni: Why virtual ? | |||||
isaact: Habit - removed | |||||
109 | bool isDeviceSet(); | 109 | bool isDeviceSet(); | ||
110 | 110 | | |||
111 | bool operator< (const QTreeWidgetItem & other) const; | ||||
111 | protected: | 112 | protected: | ||
112 | 113 | | |||
113 | void setDeviceText(const QString &); | 114 | void setDeviceText(const QString &); | ||
114 | 115 | | |||
115 | virtual void setDefaultDeviceToolTip(); | 116 | virtual void setDefaultDeviceToolTip(); | ||
116 | virtual void setDefaultDeviceText(); | 117 | virtual void setDefaultDeviceText(); | ||
117 | virtual void setDefaultDeviceIcon(); | 118 | virtual void setDefaultDeviceIcon(); | ||
118 | virtual void setDefaultListing(const Solid::DeviceInterface::Type &); | 119 | virtual void setDefaultListing(const Solid::DeviceInterface::Type &); | ||
119 | 120 | | |||
120 | bool deviceSet; | 121 | bool deviceSet; | ||
121 | QVListLayout *deviceInfoLayout; | 122 | QVListLayout *deviceInfoLayout; | ||
122 | Solid::DeviceInterface::Type deviceTypeHolder; | 123 | Solid::DeviceInterface::Type deviceTypeHolder; | ||
123 | Solid::Device tiedDevice; | 124 | Solid::Device tiedDevice; | ||
124 | }; | 125 | }; | ||
125 | 126 | | |||
126 | #endif //SOLDEVICE | 127 | #endif //SOLDEVICE |
Why virtual ?