예제 #1
0
 RWImageData(uint2 size, Format format)
 {
     this->size = size;
     this->format = format;
     setDefaultSizes();
     ownedData   = DynamicBuffer<uint8_t>(sizeBytes());
     mutableData = ownedData;
     data        = mutableData;
 }
예제 #2
0
파일: topbar.cpp 프로젝트: Suneal/qt
TopBar::TopBar(QGraphicsView* mainView, QGraphicsWidget* parent) :
    GvbWidget(parent), m_mainView(mainView), m_isLimeTheme(false),
    m_orientation(TopBar::None), m_topBarPixmap(), m_sizesBlue(), m_sizesLime()
{
    setDefaultSizes();
    
    m_titleFont = Theme::p()->font(Theme::TitleBar);
    m_statusFont = Theme::p()->font(Theme::StatusBar);

    connect(Theme::p(), SIGNAL(themeChanged()), this, SLOT(themeChange()));
}