guck

Vim-like QtWebEngine-powered browser, written in C++
git clone git://git.deurzen.net/guck
Log | Files | Refs | LICENSE

textbase.hh (471B)


      1 #ifndef __GUCK__BROWSER__STATUSBAR__TEXTBASE__GUARD__
      2 #define __GUCK__BROWSER__STATUSBAR__TEXTBASE__GUARD__
      3 
      4 #include <QWidget>
      5 #include <QLabel>
      6 
      7 class textbase_t : public QLabel
      8 {
      9     Q_OBJECT
     10 
     11 public:
     12     textbase_t(QWidget& parent)
     13         : QLabel(&parent),
     14           m_parent(parent)
     15     {
     16         QLabel::setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
     17     }
     18 
     19 private:
     20     QWidget& m_parent;
     21 
     22 };
     23 
     24 #endif//__GUCK__BROWSER__STATUSBAR__TEXTBASE__GUARD__