void TTFilePluginUi::setupUi()
{
QRect rectIconLabel
(0,
0,
48,
48);
mIconLabel
= new QLabel(owner
);
mIconLabel->setGeometry(rectIconLabel);
QRect rectNameLabel
(rectIconLabel.
right() + 10, rectIconLabel.
top(),
100,
24);
mFileNameLabel
= new QLabel(owner
);
mFileNameLabel->setAlignment(Qt::AlignLeft|Qt::AlignTop);
mFileNameLabel->setGeometry(rectNameLabel);
QRect rectSizeLabel
(rectNameLabel.
right() + 10, rectNameLabel.
top(),
60,
24);
mFileSizeLabel
= new QLabel(owner
);
mFileSizeLabel->setAlignment(Qt::AlignRight|Qt::AlignTop);
mFileSizeLabel->setGeometry(rectSizeLabel);
QRect rectProgressBar
(rectNameLabel.
left(), rectNameLabel.
bottom() + 4,
rectNameLabel.width() + 10 + rectSizeLabel.width(), 20);
mProgressBar->setTextVisible(false);
mProgressBar->setGeometry(rectProgressBar);
QRect rectRecvButton
(rectIconLabel.
left(), rectIconLabel.
bottom() + 5,
60,
30);
mRecvButton->setGeometry(rectRecvButton);
QRect rectOpenButton
(rectRecvButton.
right() + 10, rectIconLabel.
bottom() + 5,
60,
30);
mOpenButton->setGeometry(rectOpenButton);
QRect rectSaveAsButton
(rectOpenButton.
right()+10, rectIconLabel.
bottom() + 5,
60,
30);
mSaveAsButton->setGeometry(rectSaveAsButton);
}
void TTFilePluginUi::setupUi()
{
QRect rectIconLabel(0,0,48,48);
mIconLabel = new QLabel(owner);
mIconLabel->setGeometry(rectIconLabel);
QRect rectNameLabel(rectIconLabel.right() + 10, rectIconLabel.top(), 100, 24);
mFileNameLabel = new QLabel(owner);
mFileNameLabel->setAlignment(Qt::AlignLeft|Qt::AlignTop);
mFileNameLabel->setGeometry(rectNameLabel);
QRect rectSizeLabel(rectNameLabel.right() + 10, rectNameLabel.top(), 60, 24);
mFileSizeLabel = new QLabel(owner);
mFileSizeLabel->setAlignment(Qt::AlignRight|Qt::AlignTop);
mFileSizeLabel->setGeometry(rectSizeLabel);
QRect rectProgressBar(rectNameLabel.left(), rectNameLabel.bottom() + 4,
rectNameLabel.width() + 10 + rectSizeLabel.width(), 20);
mProgressBar = new QProgressBar(owner);
mProgressBar->setTextVisible(false);
mProgressBar->setGeometry(rectProgressBar);
QRect rectRecvButton(rectIconLabel.left(), rectIconLabel.bottom() + 5, 60, 30);
mRecvButton = new QPushButton("Receive", owner);
mRecvButton->setGeometry(rectRecvButton);
QRect rectOpenButton(rectRecvButton.right() + 10, rectIconLabel.bottom() + 5, 60, 30);
mOpenButton = new QPushButton("Open", owner);
mOpenButton->setGeometry(rectOpenButton);
QRect rectSaveAsButton(rectOpenButton.right()+10, rectIconLabel.bottom() + 5, 60, 30);
mSaveAsButton = new QPushButton("Save As", owner);
mSaveAsButton->setGeometry(rectSaveAsButton);
}
To copy to clipboard, switch view to plain text mode
Bookmarks