Commit 28f6950f authored by mike warren's avatar mike warren Committed by Tomas Touceda
Browse files

make main window show up properly in ratpoison with proper maximum size hint,...

make main window show up properly in ratpoison with proper maximum size hint, and add pixmap + text properties properly for Qt 4.7.3+
parent 58465f9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
  <property name="maximumSize" >
   <size>
     <width>16777215</width>
     <height>1</height>
     <height>16777215</height>
   </size>
  </property>
  <property name="windowTitle" >
+6 −0
Original line number Diff line number Diff line
@@ -40,6 +40,12 @@ public:
  /** Sets the widget's image to <b>img</b>. */
  void setPixmap(const QPixmap &img);

  const QString& text() const { return _text; }
  const QPixmap& pixmap() const { return _pixmap; }
  
  Q_PROPERTY(QString text READ text WRITE setText USER true);
  Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap USER true);

signals:
  /** Emitted when the widget is left-clicked. */
  void clicked();