Ejemplo n.º 1
0
LLView* LLUICtrlFactory::createWidget(LLPanel *parent, LLXMLNodePtr node)
{
	LLView* view = createCtrlWidget(parent, node);

	S32 tab_group = parent->getLastTabGroup();
	node->getAttributeS32("tab_group", tab_group);

	if (view)
	{
		parent->addChild(view, tab_group);
	}

	return view;
}
Ejemplo n.º 2
0
MainWidget::MainWidget(QWidget *parent)
	: QWidget(parent)
{
    QFont font("ZYSong18030",12);
    setFont(font);
    
    area = new PaintArea;
   
    ctrlFrame = new QFrame;
    createCtrlWidget();
    
    QHBoxLayout *mainLayout = new QHBoxLayout;
    mainLayout->addWidget(area);
    mainLayout->addWidget(ctrlFrame);
    setLayout(mainLayout); 
    
    setWindowTitle(tr("Painter Transformation"));   
}
Ejemplo n.º 3
0
MainWidget::MainWidget(QWidget *parent)
	: QWidget(parent)
{
    QFont font("ZYSong18030",12);
    setFont(font);
    
    startColor = Qt::green;
    endColor = Qt::blue;
    style = Qt::LinearGradientPattern; 
    
    PaintArea *area = new PaintArea(this);
   
    ctrlWidget = new QWidget;
    createCtrlWidget();
    
    QVBoxLayout *mainLayout = new QVBoxLayout;
    mainLayout->addWidget(area);
    mainLayout->addWidget(ctrlWidget);
    setLayout(mainLayout); 
    
    setWindowTitle(tr("Gradient"));   
}