RazorTray::RazorTray(const RazorPanelPluginStartInfo* startInfo, QWidget* parent): RazorPanelPlugin(startInfo, parent), mValid(false), mTrayId(0), mIconSize(TRAY_ICON_SIZE_DEFAULT, TRAY_ICON_SIZE_DEFAULT) { setObjectName("Tray"); setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); mValid = startTray(); }
RazorTray::RazorTray(const RazorPanelPluginStartInfo* startInfo, QWidget* parent): RazorPanelPlugin(startInfo, parent), mValid(false), mTrayId(0), mDamageEvent(0), mDamageError(0), mIconSize(TRAY_ICON_SIZE_DEFAULT, TRAY_ICON_SIZE_DEFAULT) { setObjectName("Tray"); layout()->setAlignment(Qt::AlignCenter); mValid = startTray(); }
RazorTray::RazorTray(const RazorPanelPluginStartInfo* startInfo, QWidget* parent): RazorPanelPlugin(startInfo, parent), mValid(false), mTrayId(0), mDamageEvent(0), mDamageError(0), mIconSize(TRAY_ICON_SIZE_DEFAULT, TRAY_ICON_SIZE_DEFAULT) { setObjectName("Tray"); layout()->setAlignment(Qt::AlignCenter); // Init the selection later just to ensure that no signals are sent until // after construction is done and the creating object has a chance to connect. QTimer::singleShot(0, this, SLOT(startTray())); }
RazorTray::RazorTray(IRazorPanelPlugin *plugin, QWidget *parent): QFrame(parent), mValid(false), mTrayId(0), mDamageEvent(0), mDamageError(0), mIconSize(TRAY_ICON_SIZE_DEFAULT, TRAY_ICON_SIZE_DEFAULT), mPlugin(plugin) { mLayout = new RazorGridLayout(this); realign(); // Init the selection later just to ensure that no signals are sent until // after construction is done and the creating object has a chance to connect. QTimer::singleShot(0, this, SLOT(startTray())); }
LXQtTray::LXQtTray(ILXQtPanelPlugin *plugin, QWidget *parent): QFrame(parent), mValid(false), mTrayId(0), mDamageEvent(0), mDamageError(0), mIconSize(TRAY_ICON_SIZE_DEFAULT, TRAY_ICON_SIZE_DEFAULT), mPlugin(plugin), mDisplay(QX11Info::display()) { mLayout = new LXQt::GridLayout(this); realign(); _NET_SYSTEM_TRAY_OPCODE = XfitMan::atom("_NET_SYSTEM_TRAY_OPCODE"); // Init the selection later just to ensure that no signals are sent until // after construction is done and the creating object has a chance to connect. QTimer::singleShot(0, this, SLOT(startTray())); }
RazorTray::RazorTray(QWidget* parent): QFrame(parent), mValid(false), mTrayId(0), mDamageEvent(0), mDamageError(0), mIconSize(TRAY_ICON_SIZE_DEFAULT, TRAY_ICON_SIZE_DEFAULT) { // mLayout = new RazorGridLayout(this); mLayout = new QBoxLayout(QBoxLayout::LeftToRight, this); mLayout->setMargin(0); // make the margin 0 to make more room for tray icons setLayout(mLayout); realign(); // Init the selection later just to ensure that no signals are sent until // after construction is done and the creating object has a chance to connect. QTimer::singleShot(0, this, SLOT(startTray())); }