AlbumShaper 1.0a3
translationsWidget.cpp
Go to the documentation of this file.
1//==============================================
2// copyright : (C) 2003-2004 by Will Stokes
3//==============================================
4// This program is free software; you can redistribute it
5// and/or modify it under the terms of the GNU General
6// Public License as published by the Free Software
7// Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//==============================================
10
11//Systemwide includes
12#include <qlayout.h>
13#include <qlabel.h>
14#include <qfont.h>
15
16//Projectwide includes
17#include "translationsWidget.h"
18
19//==============================================
21 const char* name ) : QWidget( parent, name)
22{
23 categoryLabel = new QLabel( tr("Translation Settings"), this);
24 QFont labelFont = categoryLabel->font();
25 labelFont.setWeight(QFont::Bold);
26 categoryLabel->setFont( labelFont );
27
28 horizontalLine = new QFrame(this);
29 horizontalLine->setLineWidth(2);
30 horizontalLine->setMidLineWidth(1);
31 horizontalLine->setFrameStyle( QFrame::HLine | QFrame::Raised );
32
33 grid = new QGridLayout( this, 7, 1, 0);
34 grid->addWidget( categoryLabel, 0, 0, Qt::AlignLeft );
35 grid->setRowSpacing(1, 8);
36 grid->addWidget( horizontalLine, 2, 0 );
37 grid->setRowSpacing(3, 8);
38 grid->setRowStretch( 6, 1 );
39}
40//==============================================
TranslationsWidget(QWidget *parent=0, const char *name=0)