本文整理汇总了C++中clicked函数的典型用法代码示例。如果您正苦于以下问题:C++ clicked函数的具体用法?C++ clicked怎么用?C++ clicked使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了clicked函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: QWidget
ButtonLog::ButtonLog(LogPlay *log,RDCae *cae,int id,RDAirPlayConf *conf,
bool allow_pause,QWidget *parent,const char *name)
: QWidget(parent,name)
{
log_id=id;
log_log=log;
log_cae=cae;
log_action_mode=RDAirPlayConf::Normal;
log_op_mode=RDAirPlayConf::LiveAssist;
log_time_mode=RDAirPlayConf::TwentyFourHour;
log_pause_enabled=allow_pause;
QFont font=QFont("Helvetica",14,QFont::Bold);
font.setPixelSize(14);
//
// Set Mappings
//
connect(log_log,SIGNAL(transportChanged()),
this,SLOT(transportChangedData()));
connect(log_log,SIGNAL(modified(int)),this,SLOT(modifiedData(int)));
connect(log_log,SIGNAL(played(int)),this,SLOT(playedData(int)));
connect(log_log,SIGNAL(stopped(int)),this,SLOT(stoppedData(int)));
connect(log_log,SIGNAL(paused(int)),this,SLOT(pausedData(int)));
connect(log_log,SIGNAL(position(int,int)),this,SLOT(positionData(int,int)));
//
// Edit Event Dialog
//
log_event_edit=new EditEvent(log_log,log_cae,this,"list_event_edit");
//
// Line Boxes / Start Buttons
//
QSignalMapper *mapper=new QSignalMapper(this,"start_button_mapper");
connect(mapper,SIGNAL(mapped(int)),
this,SLOT(startButton(int)));
for(int i=0;i<BUTTON_PLAY_BUTTONS;i++) {
log_line_box[i]=new LogLineBox(conf,this);
log_line_box[i]->setMode(LogLineBox::Full);
log_line_box[i]->setAcceptDrops(rdstation_conf->enableDragdrop());
log_line_box[i]->setAllowDrags(rdstation_conf->enableDragdrop());
log_line_box[i]->setGeometry(10+log_line_box[i]->sizeHint().height(),
(log_line_box[i]->sizeHint().height()+12)*i,
log_line_box[i]->sizeHint().width(),
log_line_box[i]->sizeHint().height());
connect(log_line_box[i],SIGNAL(doubleClicked(int)),
this,SLOT(boxDoubleClickedData(int)));
connect(log_line_box[i],SIGNAL(cartDropped(int,RDLogLine *)),
this,SLOT(cartDroppedData(int,RDLogLine *)));
log_start_button[i]=new StartButton(allow_pause,this);
log_start_button[i]->setGeometry(5,
(log_line_box[i]->sizeHint().height()+12)*i,
log_line_box[i]->sizeHint().height(),
log_line_box[i]->sizeHint().height());
mapper->setMapping(log_start_button[i],i);
connect(log_start_button[i],SIGNAL(clicked()),
mapper,SLOT(map()));
}
for(int i=BUTTON_PLAY_BUTTONS;i<BUTTON_TOTAL_BUTTONS;i++) {
log_line_box[i]=new LogLineBox(conf,this);
log_line_box[i]->setMode(LogLineBox::Half);
log_line_box[i]->setAcceptDrops(rdstation_conf->enableDragdrop());
log_line_box[i]->setAllowDrags(rdstation_conf->enableDragdrop());
log_line_box[i]->setGeometry(10+log_line_box[0]->sizeHint().height(),
(log_line_box[0]->sizeHint().height()+12)*3+
(log_line_box[i]->sizeHint().height()+12)*(i-3),
log_line_box[i]->sizeHint().width(),
log_line_box[i]->sizeHint().height());
connect(log_line_box[i],SIGNAL(doubleClicked(int)),
this,SLOT(boxDoubleClickedData(int)));
connect(log_line_box[i],SIGNAL(cartDropped(int,RDLogLine *)),
this,SLOT(cartDroppedData(int,RDLogLine *)));
log_start_button[i]=new StartButton(allow_pause,this);
log_start_button[i]->setGeometry(5,
(log_line_box[0]->sizeHint().height()+12)*3+
(log_line_box[i]->sizeHint().height()+12)*(i-3),
log_line_box[0]->sizeHint().height(),
log_line_box[i]->sizeHint().height());
mapper->setMapping(log_start_button[i],i);
connect(log_start_button[i],SIGNAL(clicked()),
mapper,SLOT(map()));
}
}
开发者ID:kevinsikes,项目名称:rivendell,代码行数:85,代码来源:button_log.cpp
示例2: QWidget
//.........这里部分代码省略.........
lbPathDescribe = new QLabel("Path设置:", this);
vblRight->addWidget(lbPathDescribe);
pbShowPath = new QPushButton("显示Path信息"); //显示path
vblRight->addWidget(pbShowPath);
pbEiditPath = new QPushButton("编辑Path路径"); //修改path
vblRight->addWidget(pbEiditPath);
//*****************************************************************
lbBackDescribe = new QLabel("环境适配:");
vblRight->addWidget(lbBackDescribe);
pbSetBack = new QPushButton("备份当前环境"); //备份环境
vblRight->addWidget(pbSetBack);
pbUseBack = new QPushButton("还原到指定环境"); //还原环境
vblRight->addWidget(pbUseBack);
pbCheckIN = new QPushButton("导入特定环境变量"); //导入环境
vblRight->addWidget(pbCheckIN);
pbCheckOut = new QPushButton("导出指定环境变量"); //导出环境
vblRight->addWidget(pbCheckOut);
//*****************************************************************
lbEiditDescribe = new QLabel("变量操作:");
vblRight->addWidget(lbEiditDescribe);
pbNewValue = new QPushButton("新建环境变量"); //新建变量
vblRight->addWidget(pbNewValue);
pbEiditValue = new QPushButton("编辑选中变量"); //编辑变量
vblRight->addWidget(pbEiditValue);
pbDelValue = new QPushButton("删除选中变量"); //删除变量
vblRight->addWidget(pbDelValue);
//*****************************************************************
lbEiditFunction = new QLabel(" ");
vblRight->addWidget(lbEiditFunction);
pbAbout = new QPushButton("关于…");//关于
vblRight->addWidget(pbAbout);
pbExit = new QPushButton("退出"); //退出
vblRight->addWidget(pbExit);
/******************************************
// 环境变量池
*/
//显示变量
slotRefrehValue();
//通过是否可以新建环境变量判断是否以管理员身份启动
reg->setValue("testAdminPermissions", "test");
if (reg->value("testAdminPermissions", false).toBool()) {
reg->remove("testAdminPermissions");
isAdimin = true;
//判断back目录是否存在,若没有提示用户备份!
QDir dir;
if (!dir.exists("./back/")) {
switch (QMessageBox::information(this, "备份提醒",
"程序当前目录下找不到back文件夹,您可能从未对环境变量进行备份,为了保证操作安全,强烈建议您备份当前环境变量以减少误操作所带来的困扰!",
"立即备份!", "暂不需要!", 0, 1)) {
case 0:
slotSetBack();
break;
case 1:
break;
}
}
} else {
QMessageBox::information(NULL, "未获得UAC管理员权限",
"未使用UAC管理员权限开启本程序,由于Windows系统的限制,你可能只能查看变量内容而无法对其编辑");
isAdimin = false;
}
//显示选中变量概要
connect(tvValueList, SIGNAL(clicked(QModelIndex)), this,
SLOT(slotGetClickedLine()));
//槽
//显示Path信息
connect(pbShowPath, SIGNAL(clicked()), this, SLOT(slotShowPath()));
//添加按钮槽
connect(pbNewValue, SIGNAL(clicked()), this, SLOT(slotCreateWindow()));
connect(pbEiditValue, SIGNAL(clicked()), this, SLOT(slotEiditWindow()));
connect(pbEiditPath, SIGNAL(clicked()), this, SLOT(slotPathWindow()));
//删除按钮槽
connect(pbDelValue, SIGNAL(clicked()), this, SLOT(slotRemoveValue()));
//备份
connect(pbSetBack, SIGNAL(clicked()), this, SLOT(slotSetBack()));
//还原
connect(pbUseBack, SIGNAL(clicked()), this, SLOT(SlotGetBackWindow()));
//导出
connect(pbCheckOut, SIGNAL(clicked()), this, SLOT(slotExportWindow()));
//导入
connect(pbCheckIN, SIGNAL(clicked()), this, SLOT(slotImportWindow()));
//退出
connect(pbExit, SIGNAL(clicked()), this, SLOT(close()));
//关于
connect(pbAbout, SIGNAL(clicked()), this, SLOT(slotAboutWindow()));
}
开发者ID:sequarius,项目名称:SequariusToys,代码行数:101,代码来源:mainwindow.cpp
示例3: QDialog
SpiceDialog::SpiceDialog(SpiceFile *c, Schematic *d)
: QDialog(d, 0, TRUE, Qt::WDestructiveClose)
{
resize(400, 250);
setCaption(tr("Edit SPICE Component Properties"));
Comp = c;
Doc = d;
all = new Q3VBoxLayout(this); // to provide neccessary size
QWidget *myParent = this;
Expr.setPattern("[^\"=]+"); // valid expression for property 'edit' etc
Validator = new QRegExpValidator(Expr, this);
Expr.setPattern("[\\w_]+"); // valid expression for property 'NameEdit' etc
ValRestrict = new QRegExpValidator(Expr, this);
// ...........................................................
Q3GridLayout *topGrid = new Q3GridLayout(0, 4,3,3,3);
all->addLayout(topGrid);
topGrid->addWidget(new QLabel(tr("Name:"), myParent), 0,0);
CompNameEdit = new QLineEdit(myParent);
CompNameEdit->setValidator(ValRestrict);
topGrid->addWidget(CompNameEdit, 0,1);
connect(CompNameEdit, SIGNAL(returnPressed()), SLOT(slotButtOK()));
topGrid->addWidget(new QLabel(tr("File:"), myParent), 1,0);
FileEdit = new QLineEdit(myParent);
FileEdit->setValidator(ValRestrict);
topGrid->addWidget(FileEdit, 1,1);
connect(FileEdit, SIGNAL(returnPressed()), SLOT(slotButtOK()));
ButtBrowse = new QPushButton(tr("Browse"), myParent);
topGrid->addWidget(ButtBrowse, 1,2);
connect(ButtBrowse, SIGNAL(clicked()), SLOT(slotButtBrowse()));
ButtEdit = new QPushButton(tr("Edit"), myParent);
topGrid->addWidget(ButtEdit, 2,2);
connect(ButtEdit, SIGNAL(clicked()), SLOT(slotButtEdit()));
FileCheck = new QCheckBox(tr("show file name in schematic"), myParent);
topGrid->addWidget(FileCheck, 2,1);
SimCheck = new QCheckBox(tr("include SPICE simulations"), myParent);
topGrid->addWidget(SimCheck, 3,1);
Q3HBox *h1 = new Q3HBox(myParent);
h1->setSpacing(5);
PrepCombo = new QComboBox(h1);
PrepCombo->insertItem("none");
PrepCombo->insertItem("ps2sp");
PrepCombo->insertItem("spicepp");
PrepCombo->insertItem("spiceprm");
QLabel * PrepLabel = new QLabel(tr("preprocessor"), h1);
PrepLabel->setMargin(5);
topGrid->addWidget(h1, 4,1);
connect(PrepCombo, SIGNAL(activated(int)), SLOT(slotPrepChanged(int)));
// ...........................................................
Q3GridLayout *midGrid = new Q3GridLayout(0, 2,3,5,5);
all->addLayout(midGrid);
midGrid->addWidget(new QLabel(tr("SPICE net nodes:"), myParent), 0,0);
NodesList = new Q3ListBox(myParent);
midGrid->addWidget(NodesList, 1,0);
connect(NodesList, SIGNAL(doubleClicked(Q3ListBoxItem*)),
SLOT(slotAddPort(Q3ListBoxItem*)));
Q3VBox *v0 = new Q3VBox(myParent);
v0->setSpacing(5);
midGrid->addWidget(v0, 1,1);
ButtAdd = new QPushButton(tr("Add >>"), v0);
connect(ButtAdd, SIGNAL(clicked()), SLOT(slotButtAdd()));
ButtRemove = new QPushButton(tr("<< Remove"), v0);
connect(ButtRemove, SIGNAL(clicked()), SLOT(slotButtRemove()));
v0->setStretchFactor(new QWidget(v0), 5); // stretchable placeholder
midGrid->addWidget(new QLabel(tr("Component ports:"), myParent), 0,2);
PortsList = new Q3ListBox(myParent);
midGrid->addWidget(PortsList, 1,2);
connect(PortsList, SIGNAL(doubleClicked(Q3ListBoxItem*)),
SLOT(slotRemovePort(Q3ListBoxItem*)));
// ...........................................................
Q3HBox *h0 = new Q3HBox(this);
h0->setSpacing(5);
all->addWidget(h0);
connect(new QPushButton(tr("OK"),h0), SIGNAL(clicked()),
SLOT(slotButtOK()));
connect(new QPushButton(tr("Apply"),h0), SIGNAL(clicked()),
SLOT(slotButtApply()));
connect(new QPushButton(tr("Cancel"),h0), SIGNAL(clicked()),
SLOT(slotButtCancel()));
// ------------------------------------------------------------
CompNameEdit->setText(Comp->Name);
changed = false;
//.........这里部分代码省略.........
开发者ID:bastien-roucaries,项目名称:qucsrework,代码行数:101,代码来源:spicedialog.cpp
示例4: XDialog
transferOrderItem::transferOrderItem(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
: XDialog(parent, name, modal, fl)
{
setupUi(this);
connect(_cancel, SIGNAL(clicked()), this, SLOT(sCancel()));
connect(_freight, SIGNAL(valueChanged()), this, SLOT(sCalculateTax()));
connect(_freight, SIGNAL(valueChanged()), this, SLOT(sChanged()));
connect(_item, SIGNAL(newId(int)), this, SLOT(sChanged()));
connect(_item, SIGNAL(newId(int)), this, SLOT(sPopulateItemInfo(int)));
connect(_next, SIGNAL(clicked()), this, SLOT(sNext()));
connect(_notes, SIGNAL(textChanged()), this, SLOT(sChanged()));
connect(_prev, SIGNAL(clicked()), this, SLOT(sPrev()));
connect(_promisedDate,SIGNAL(newDate(const QDate&)), this, SLOT(sChanged()));
connect(_qtyOrdered, SIGNAL(lostFocus()), this, SLOT(sDetermineAvailability()));
connect(_qtyOrdered, SIGNAL(textChanged(const QString&)), this, SLOT(sChanged()));
connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
connect(_scheduledDate, SIGNAL(newDate(const QDate&)), this, SLOT(sChanged()));
connect(_scheduledDate, SIGNAL(newDate(const QDate&)), this, SLOT(sDetermineAvailability()));
connect(_showAvailability, SIGNAL(toggled(bool)), this, SLOT(sDetermineAvailability()));
connect(_showAvailability, SIGNAL(toggled(bool)), this, SLOT(sDetermineAvailability()));
connect(_showIndented,SIGNAL(toggled(bool)), this, SLOT(sDetermineAvailability()));
connect(_taxLit, SIGNAL(leftClickedURL(QString)), this, SLOT(sTaxDetail()));
connect(_warehouse, SIGNAL(newID(int)), this, SLOT(sChanged()));
connect(_warehouse, SIGNAL(newID(int)), this, SLOT(sDetermineAvailability()));
connect(_inventoryButton, SIGNAL(toggled(bool)), this, SLOT(sHandleButton()));
_modified = false;
_canceling = false;
_error = false;
_originalQtyOrd = 0.0;
_saved = false;
_availabilityLastItemid = -1;
_availabilityLastWarehousid = -1;
_availabilityLastSchedDate = QDate();
_availabilityLastShow = false;
_availabilityLastShowIndent = false;
_availabilityQtyOrdered = 0.0;
_item->setType(ItemLineEdit::cActive | (ItemLineEdit::cAllItemTypes_Mask ^ ItemLineEdit::cKit));
_item->addExtraClause( QString("(itemsite_active)") ); // ItemLineEdit::cActive doesn't compare against the itemsite record
_availability->addColumn(tr("#"), _seqColumn, Qt::AlignCenter,true, "bomitem_seqnumber");
_availability->addColumn(tr("Item Number"),_itemColumn, Qt::AlignLeft, true, "item_number");
_availability->addColumn(tr("Description"), -1, Qt::AlignLeft, true, "item_descrip");
_availability->addColumn(tr("UOM"), _uomColumn, Qt::AlignCenter,true, "uom_name");
_availability->addColumn(tr("Pend. Alloc."),_qtyColumn, Qt::AlignRight, true, "pendalloc");
_availability->addColumn(tr("Total Alloc."),_qtyColumn, Qt::AlignRight, true, "totalalloc");
_availability->addColumn(tr("On Order"), _qtyColumn, Qt::AlignRight, true, "ordered");
_availability->addColumn(tr("QOH"), _qtyColumn, Qt::AlignRight, true, "qoh");
_availability->addColumn(tr("Availability"),_qtyColumn, Qt::AlignRight, true, "totalavail");
_itemchar = new QStandardItemModel(0, 2, this);
_itemchar->setHeaderData( 0, Qt::Horizontal, tr("Name"), Qt::DisplayRole);
_itemchar->setHeaderData( 1, Qt::Horizontal, tr("Value"), Qt::DisplayRole);
_itemcharView->setModel(_itemchar);
ItemCharacteristicDelegate * delegate = new ItemCharacteristicDelegate(this);
_itemcharView->setItemDelegate(delegate);
_qtyOrdered->setValidator(omfgThis->qtyVal());
_shippedToDate->setPrecision(omfgThis->qtyVal());
_onHand->setPrecision(omfgThis->qtyVal());
_allocated->setPrecision(omfgThis->qtyVal());
_unallocated->setPrecision(omfgThis->qtyVal());
_onOrder->setPrecision(omfgThis->qtyVal());
_available->setPrecision(omfgThis->qtyVal());
if (!_metrics->boolean("UsePromiseDate"))
{
_promisedDateLit->hide();
_promisedDate->hide();
}
_comments->setType(Comments::TransferOrderItem);
_captive = FALSE;
_dstwhsid = -1;
_itemsiteid = -1;
_transwhsid = -1;
_toheadid = -1;
_taxzoneid = -1;
adjustSize();
_inventoryButton->setEnabled(_showAvailability->isChecked());
_dependencyButton->setEnabled(_showAvailability->isChecked());
_availability->setEnabled(_showAvailability->isChecked());
_showIndented->setEnabled(_showAvailability->isChecked());
}
开发者ID:Wushaowei001,项目名称:xtuple-1,代码行数:90,代码来源:transferOrderItem.cpp
示例5: QMainWindow
RouterKeygen::RouterKeygen(QWidget *parent) :
QMainWindow(parent), ui(new Ui::RouterKeygen), loading(NULL), loadingText(
NULL) {
ui->setupUi(this);
connect(ui->calculateButton, SIGNAL( clicked() ), this,
SLOT( manualCalculation() ));
connect(ui->refreshScan, SIGNAL( clicked() ), this,
SLOT( refreshNetworks() ));
connect(ui->networkslist, SIGNAL( cellClicked(int,int) ), this,
SLOT( tableRowSelected(int,int) ));
#ifdef Q_OS_UNIX
connect(ui->forceRefresh, SIGNAL( stateChanged(int) ), this,
SLOT( forceRefreshToggle(int) ));
#else
ui->forceRefresh->setVisible(false); // it is not needed in Windows
#endif
wifiManager = new QWifiManager();
connect(wifiManager, SIGNAL( scanFinished(int) ), this,
SLOT( scanFinished(int) ));
loadingAnim = new QMovie(":/images/loading.gif");
loadingAnim->setParent(this);
/*Auto-Complete!*/
QStringList wordList;
wordList << "Thomson" << "Blink" << "SpeedTouch" << "O2Wireless"
<< "Orange-" << "INFINITUM" << "BigPond" << "Otenet" << "Bbox-"
<< "DMAX" << "privat" << "DLink-" << "Discus--" << "eircom"
<< "FASTWEB-1-" << "Alice-" << "WLAN_" << "WLAN" << "JAZZTEL_"
<< "WiFi" << "YaCom" << "SKY" << "TECOM-AH4222-" << "TECOM-AH4021-"
<< "InfostradaWiFi-" << "TN_private_" << "CYTA" << "PBS" << "CONN"
<< "OTE" << "Vodafone-" << "EasyBox-" << "Arcor-" << "Megared"
<< "Optimus" << "OptimusFibra" << "MEO-";
QCompleter *completer = new QCompleter(wordList, this);
completer->setCaseSensitivity(Qt::CaseInsensitive);
completer->setCompletionMode(QCompleter::PopupCompletion);
ui->ssidInput->setCompleter(completer);
ui->networkslist->setSelectionBehavior(QAbstractItemView::SelectRows);
ui->networkslist->setEditTriggers(QAbstractItemView::NoEditTriggers);
ui->passwordsList->installEventFilter(this);
this->router = NULL;
this->calculator = NULL;
//Set widget ration
ui->splitter->setStretchFactor(0, 2);
ui->splitter->setStretchFactor(1, 1);
// set up and show the system tray icon
// build menu
trayMenu = new QMenu(this);
trayIcon = new QSystemTrayIcon(this);
trayIcon->setIcon(windowIcon());
trayIcon->setContextMenu(trayMenu);
trayIcon->show();
settings = new QSettings("Exobel", "RouterKeygen");
bool forceRefresh = settings->value(FORCE_REFRESH, false).toBool();
wifiManager->setForceScan(forceRefresh);
ui->forceRefresh->setChecked(forceRefresh);
runInBackground = settings->value(RUN_IN_BACKGROUND, true).toBool();
runOnStartUp = settings->value(RUN_ON_START_UP, false).toBool();
qApp->setQuitOnLastWindowClosed(!runInBackground);
wifiManager->startScan();
}
开发者ID:AlbertoBlas,项目名称:routerkeygen,代码行数:64,代码来源:RouterKeygen.cpp
示例6: qDebug
TabWidget::TabWidget( QWidget* parent )
{
qDebug() << "[TABWIDGET] Constructing";
mGrabbedWidget = 0;
mTabs = 0;
// set the tab position
setTabsPosition();
mStatusBar = &mStatusBar->getInstance();
// create the tabbar
mBar = new TabBar;
setTabBar( mBar );
// connect the mouse clicks
connect( mBar, SIGNAL( tabRightClicked( int, QPoint ) ),
this, SLOT( tabRightClicked( int, QPoint ) ) );
connect( mBar, SIGNAL( tabMiddleClicked( int, QPoint ) ),
this, SLOT( tabMiddleClicked( int, QPoint ) ) );
TabButton* newTabButton = new TabButton( this );
TabButton* mMenuButton = new TabButton( this );
connect( newTabButton, SIGNAL( clicked() ),
this, SLOT( addUnityBrowser()) );
connect( newTabButton, SIGNAL( middleClicked() ),
this, SLOT( addUnityBrowserWithSR() ) );
connect( mMenuButton, SIGNAL( clicked() ),
mMenuButton, SLOT( showMenu()) );
mMenuButton->setMenu( kueueMainMenu() );
newTabButton->setIcon( QIcon( ":icons/menus/newtab.png" ) );
mMenuButton->setIcon( QIcon(":/icons/kueue.png") );
if ( Settings::unityEnabled() )
{
setCornerWidget( newTabButton, Qt::TopRightCorner );
}
setCornerWidget( mMenuButton, Qt::TopLeftCorner );
// create the main browser tabs...
mQueueBrowser = new QueueBrowser( this );
mSubownerBrowser = new SubownerBrowser( this );
mPersonalTab = new BrowserWithSearch( mQueueBrowser, this );
mSubownerTab = new BrowserWithSearch( mSubownerBrowser, this );
connect( mQueueBrowser, SIGNAL( setMenus() ),
this, SLOT( setMenus() ) );
connect( mSubownerBrowser, SIGNAL( setMenus() ),
this, SLOT( setMenus() ) );
connect( mQueueBrowser, SIGNAL( expandAll() ),
this, SLOT( expandAllTables() ) );
connect( mQueueBrowser, SIGNAL( closeAll() ),
this, SLOT( closeAllTables() ) );
mQmonBrowser = new QMonBrowser( this );
mMonitorTab = new BrowserWithSearch( mQmonBrowser, this );
mStatsBrowser = new StatsBrowser( this );
mStatsTab = new BrowserWithSearch( mStatsBrowser, this );
if ( Settings::unityEnabled() )
{
addUnityBrowser();
rebuildMaps();
}
mSubVisible = true;
// ...and add them to the tabbar
insertTab( 0, mPersonalTab, QIcon( ":icons/conf/targets.png" ), "Personal queue" );
insertTab( 1, mSubownerTab, QIcon( ":icons/conf/targets.png" ), "Subowned SRs" );
insertTab( 2, mMonitorTab, QIcon( ":/icons/conf/monitor.png" ), "Queue monitor" );
insertTab( 3, mStatsTab, QIcon( ":/icons/conf/stats.png" ), "Statistics" );
QShortcut* search = new QShortcut( QKeySequence( Qt::CTRL + Qt::Key_F ), this );
connect( search, SIGNAL( activated() ),
this, SLOT( showSearch() ) );
refreshTabs();
}
开发者ID:bochi,项目名称:kueue,代码行数:99,代码来源:tabwidget.cpp
示例7: contentWidget_
CustomFrame::CustomFrame(QWidget *contentWidget, const QString &title)
: contentWidget_(contentWidget)
{
this->setWindowFlags(Qt::FramelessWindowHint);
this->setAttribute(Qt::WA_TranslucentBackground);
this->setMouseTracking(true);
isMax_ = false;
isPress_ = false;
QLabel *logoLabel = new QLabel();
QPixmap logoPixmap = this->style()->standardPixmap(QStyle::SP_TitleBarMenuButton);
logoLabel->setPixmap(logoPixmap);
logoLabel->setFixedSize(16, 16);
logoLabel->setScaledContents(true);
QLabel *titleLabel = new QLabel();
titleLabel->setText(title);
QFont titleFont = titleLabel->font();
titleFont.setBold(true);
titleLabel->setFont(titleFont);
titleLabel->setObjectName("whiteLabel");
QToolButton *minButton = new QToolButton();
QPixmap minPixmap = this->style()->standardPixmap(QStyle::SP_TitleBarMinButton);
minButton->setIcon(minPixmap);
connect(minButton, SIGNAL(clicked()), this, SLOT(slotShowSmall()));
maxButton_ = new QToolButton();
maxPixmap_ = this->style()->standardPixmap(QStyle::SP_TitleBarMaxButton);
restorePixmap_ = this->style()->standardPixmap(QStyle::SP_TitleBarNormalButton);
maxButton_->setIcon(maxPixmap_);
connect(maxButton_, SIGNAL(clicked()), this, SLOT(slotShowMaxRestore()));
QToolButton *closeButton = new QToolButton();
QPixmap closePixmap = this->style()->standardPixmap(QStyle::SP_TitleBarCloseButton);
closeButton->setIcon(closePixmap);
connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
QHBoxLayout *titleLayout = new QHBoxLayout();
titleLayout->addWidget(logoLabel);
titleLayout->addWidget(titleLabel);
titleLabel->setContentsMargins(5, 0, 0, 0);
titleLayout->addStretch();
titleLayout->addWidget(minButton, 0, Qt::AlignTop);
titleLayout->addWidget(maxButton_, 0, Qt::AlignTop);
titleLayout->addWidget(closeButton, 0, Qt::AlignTop);
titleLayout->setSpacing(0);
titleLayout->setContentsMargins(5, 0, 0, 0);
QWidget *titleWidget = new QWidget();
titleWidget->setLayout(titleLayout);
titleWidget->installEventFilter(0);
QVBoxLayout *mainLayout = new QVBoxLayout();
mainLayout->addWidget(titleWidget);
mainLayout->addWidget(contentWidget_);
mainLayout->setSpacing(0);
mainLayout->setMargin(5);
this->setLayout(mainLayout);
}
开发者ID:liuyanfeier,项目名称:The-Demo-of-QtLearning-,代码行数:61,代码来源:mainwindow.cpp
示例8: QDialog
/*----------------------------------------------------------------------
* EDIT SEASON DIALOG
*--------------------------------------------------------------------*/
EditSeasonDialog::EditSeasonDialog(Context *context, Season *season) :
QDialog(context->mainWindow, Qt::Dialog), context(context), season(season)
{
setWindowTitle(tr("Edit Date Range"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
// Grid
QGridLayout *grid = new QGridLayout;
QLabel *name = new QLabel(tr("Name"));
QLabel *type = new QLabel(tr("Type"));
QLabel *from = new QLabel(tr("From"));
QLabel *to = new QLabel(tr("To"));
QLabel *seed = new QLabel(tr("Starting LTS"));
QLabel *low = new QLabel(tr("Lowest SB"));
nameEdit = new QLineEdit(this);
nameEdit->setText(season->getName());
typeEdit = new QComboBox;
typeEdit->addItem(tr("Season"), Season::season);
typeEdit->addItem(tr("Cycle"), Season::cycle);
typeEdit->addItem(tr("Adhoc"), Season::adhoc);
typeEdit->setCurrentIndex(typeEdit->findData(season->getType()));
fromEdit = new QDateEdit(this);
fromEdit->setDate(season->getStart());
toEdit = new QDateEdit(this);
toEdit->setDate(season->getEnd());
seedEdit = new QDoubleSpinBox(this);
seedEdit->setDecimals(0);
seedEdit->setRange(0.0, 300.0);
seedEdit->setSingleStep(1.0);
seedEdit->setWrapping(true);
seedEdit->setAlignment(Qt::AlignLeft);
seedEdit->setValue(season->getSeed());
lowEdit = new QDoubleSpinBox(this);
lowEdit->setDecimals(0);
lowEdit->setRange(-500, 0);
lowEdit->setSingleStep(1.0);
lowEdit->setWrapping(true);
lowEdit->setAlignment(Qt::AlignLeft);
lowEdit->setValue(season->getLow());
grid->addWidget(name, 0,0);
grid->addWidget(nameEdit, 0,1);
grid->addWidget(type, 1,0);
grid->addWidget(typeEdit, 1,1);
grid->addWidget(from, 2,0);
grid->addWidget(fromEdit, 2,1);
grid->addWidget(to, 3,0);
grid->addWidget(toEdit, 3,1);
grid->addWidget(seed, 4,0);
grid->addWidget(seedEdit, 4,1);
grid->addWidget(low, 5,0);
grid->addWidget(lowEdit, 5,1);
mainLayout->addLayout(grid);
// Buttons
QHBoxLayout *buttonLayout = new QHBoxLayout;
buttonLayout->addStretch();
applyButton = new QPushButton(tr("&OK"), this);
cancelButton = new QPushButton(tr("&Cancel"), this);
buttonLayout->addWidget(cancelButton);
buttonLayout->addWidget(applyButton);
mainLayout->addLayout(buttonLayout);
// connect up slots
connect(applyButton, SIGNAL(clicked()), this, SLOT(applyClicked()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancelClicked()));
}
开发者ID:perrygeo,项目名称:GoldenCheetah,代码行数:78,代码来源:Season.cpp
示例9: RDCut
void DiskRipper::RipTrack(int track,int end_track,QString cutname,QString title)
{
RDCdRipper *ripper=NULL;
RDCut *cut=new RDCut(cutname);
RDCart *cart=new RDCart(cut->cartNumber());
QString sql;
RDSqlQuery *q;
//
// Create Cut
//
sql=QString("insert into CUTS set ")+
"CUT_NAME=\""+RDEscapeString(cutname)+"\","+
QString().sprintf("CART_NUMBER=%u,",cut->cartNumber())+
"DESCRIPTION=\""+tr("Cut")+" 001\"";
q=new RDSqlQuery(sql);
delete q;
rip_done=false;
rip_rip_aborted=false;
rip_track_number=track;
rip_title=title;
rip_cutname=cutname;
if(title.isEmpty()) {
rip_trackbar_label->setText(tr("Track Progress")+" - "+tr("Track")+
QString().sprintf(" %d",track));
}
else {
rip_trackbar_label->setText(tr("Track Progress")+" - "+title);
}
rip_diskbar_label->setEnabled(true);
rip_trackbar_label->setEnabled(true);
//
// Rip from disc
//
RDAudioImport::ErrorCode conv_err;
RDAudioConvert::ErrorCode audio_conv_err;
RDCdRipper::ErrorCode ripper_err;
QString tmpdir=RDTempDir();
QString tmpfile=tmpdir+"/"+RIPPER_TEMP_WAV;
if(rip_profile_rip) {
ripper=new RDCdRipper(stdout,this);
}
else {
ripper=new RDCdRipper(NULL,this);
}
rip_track_bar->setTotalSteps(ripper->totalSteps()+1);
connect(ripper,SIGNAL(progressChanged(int)),
rip_track_bar,SLOT(setProgress(int)));
connect(rip_rip_button,SIGNAL(clicked()),ripper,SLOT(abort()));
RDAudioImport *conv=NULL;
RDSettings *settings=NULL;
ripper->setDevice(rdlibrary_conf->ripperDevice());
ripper->setDestinationFile(tmpfile);
switch((ripper_err=ripper->rip(rip_track_number-1,end_track-1))) {
case RDCdRipper::ErrorOk:
conv=new RDAudioImport(rdstation_conf,lib_config,this);
conv->setSourceFile(tmpfile);
conv->setCartNumber(cut->cartNumber());
conv->setCutNumber(cut->cutNumber());
conv->setUseMetadata(false);
settings=new RDSettings();
if(rdlibrary_conf->defaultFormat()==1) {
settings->setFormat(RDSettings::MpegL2Wav);
}
else {
settings->setFormat(RDSettings::Pcm16);
}
settings->setChannels(rip_channels_box->currentText().toInt());
settings->setSampleRate(lib_system->sampleRate());
settings->setBitRate(rdlibrary_conf->defaultBitrate());
if(rip_normalize_box->isChecked()) {
settings->setNormalizationLevel(rip_normalize_spin->value());
}
if(rip_autotrim_box->isChecked()) {
settings->setAutotrimLevel(rip_autotrim_spin->value());
}
conv->setDestinationSettings(settings);
switch((conv_err=conv->
runImport(lib_user->name(),lib_user->password(),
&audio_conv_err))) {
case RDAudioImport::ErrorOk:
cart->setMetadata(rip_wave_datas[track-1]);
cut->setDescription(rip_wave_datas[track-1]->title());
cut->setIsrc(rip_cddb_record.isrc(rip_track_number-1));
cart->clearPending();
break;
default:
cart->remove(rdstation_conf,lib_user,lib_config);
QMessageBox::warning(this,tr("RDLibrary - Importer Error"),
RDAudioImport::errorText(conv_err,audio_conv_err));
break;
}
delete settings;
delete conv;
break;
case RDCdRipper::ErrorNoDevice:
//.........这里部分代码省略.........
开发者ID:WMTH,项目名称:rivendell,代码行数:101,代码来源:disk_ripper.cpp
示例10: QDialog
//.........这里部分代码省略.........
rip_track_label=new QLabel(rip_track_list,tr("Tracks"),this);
rip_track_label->setFont(label_font);
rip_track_list->addColumn(tr("TRACK"));
rip_track_list->setColumnAlignment(0,Qt::AlignHCenter);
rip_track_list->addColumn(tr("LENGTH"));
rip_track_list->setColumnAlignment(1,Qt::AlignRight);
rip_track_list->addColumn(tr("TITLE"));
rip_track_list->setColumnAlignment(2,Qt::AlignLeft);
rip_track_list->addColumn(tr("OTHER"));
rip_track_list->setColumnAlignment(3,Qt::AlignLeft);
rip_track_list->addColumn(tr("TYPE"));
rip_track_list->setColumnAlignment(4,Qt::AlignLeft);
rip_track_list->addColumn(tr("CUT"));
rip_track_list->setColumnAlignment(5,Qt::AlignLeft);
//
// Progress Bars
//
rip_disk_bar=new QProgressBar(this);
rip_diskbar_label=new QLabel(tr("Disk Progress"),this);
rip_diskbar_label->setFont(label_font);
rip_diskbar_label->setAlignment(AlignLeft|AlignVCenter);
rip_diskbar_label->setDisabled(true);
rip_track_bar=new QProgressBar(this);
rip_trackbar_label=new QLabel(tr("Track Progress"),this);
rip_trackbar_label->setFont(label_font);
rip_trackbar_label->setAlignment(AlignLeft|AlignVCenter);
rip_trackbar_label->setDisabled(true);
//
// Eject Button
//
rip_eject_button=new RDTransportButton(RDTransportButton::Eject,this);
connect(rip_eject_button,SIGNAL(clicked()),this,SLOT(ejectButtonData()));
//
// Play Button
//
rip_play_button=new RDTransportButton(RDTransportButton::Play,this);
connect(rip_play_button,SIGNAL(clicked()),this,SLOT(playButtonData()));
//
// Stop Button
//
rip_stop_button=new RDTransportButton(RDTransportButton::Stop,this);
rip_stop_button->setOnColor(red);
rip_stop_button->on();
connect(rip_stop_button,SIGNAL(clicked()),this,SLOT(stopButtonData()));
//
// Set Cut Button
//
rip_setcut_button=new QPushButton(tr("Set\n&Cart/Cut"),this);
rip_setcut_button->setFont(button_font);
rip_setcut_button->setDisabled(true);
connect(rip_setcut_button,SIGNAL(clicked()),this,SLOT(setCutButtonData()));
//
// Set Multi Tracks Button
//
rip_setall_button=new QPushButton(tr("Add Cart\nPer Track"),this);
rip_setall_button->setFont(button_font);
rip_setall_button->setDisabled(true);
connect(rip_setall_button,SIGNAL(clicked()),this,SLOT(setMultiButtonData()));
//
开发者ID:WMTH,项目名称:rivendell,代码行数:67,代码来源:disk_ripper.cpp
示例11: readIsrc
void DiskRipper::ripDiskButtonData()
{
RDListViewItem *item=(RDListViewItem *)rip_track_list->selectedItem();
if(item!=NULL) {
rip_track_list->setSelected(item,false);
}
rip_aborting=false;
//
// Calculate number of tracks to rip
//
int tracks=0;
for(unsigned i=0;i<rip_cutnames.size();i++) {
if(!rip_cutnames[i].isEmpty()) {
tracks++;
}
}
rip_disk_bar->setTotalSteps(tracks);
//
// Read ISRCs
//
if(!rip_isrc_read) {
rip_cddb_lookup->
readIsrc(rip_cdda_dir.path(),rdlibrary_conf->ripperDevice());
rip_isrc_read=true;
}
//
// Rip
//
tracks=0;
item=(RDListViewItem *)rip_track_list->firstChild();
while((item!=NULL)&&(!rip_aborting)) {
if(!rip_cutnames[item->text(0).toInt()-1].isEmpty()) {
rip_eject_button->setDisabled(true);
rip_play_button->setDisabled(true);
rip_stop_button->setDisabled(true);
rip_rip_button->setText(tr("Abort\nRip"));
disconnect(rip_rip_button,SIGNAL(clicked()),
this,SLOT(ripDiskButtonData()));
rip_setcut_button->setDisabled(true);
rip_setall_button->setDisabled(true);
rip_cartlabel_button->setDisabled(true);
rip_clear_button->setDisabled(true);
rip_close_button->setDisabled(true);
rip_normalize_box->setDisabled(true);
rip_normalize_spin->setDisabled(true);
rip_channels_box->setDisabled(true);
rip_autotrim_box->setDisabled(true);
rip_autotrim_spin->setDisabled(true);
rip_disk_bar->setProgress(tracks++);
rip_disk_bar->setPercentageVisible(true);
int start_track=item->text(0).toInt();
int end_track=rip_end_track[item->text(0).toInt()-1];
RipTrack(start_track,end_track,rip_cutnames[item->text(0).toInt()-1],
BuildTrackName(start_track,end_track));
}
item=(RDListViewItem *)item->nextSibling();
}
rip_eject_button->setEnabled(true);
rip_play_button->setEnabled(true);
rip_stop_button->setEnabled(true);
rip_setcut_button->setEnabled(false);
rip_setall_button->setEnabled(false);
rip_setsingle_button->setEnabled(false);
rip_cartlabel_button->setEnabled(false);
rip_clear_button->setEnabled(false);
rip_close_button->setEnabled(true);
rip_rip_button->setText(tr("Rip\nDisk"));
rip_rip_button->setEnabled(false);
connect(rip_rip_button,SIGNAL(clicked()),this,SLOT(ripDiskButtonData()));
rip_normalize_box->setEnabled(true);
rip_normalize_spin->setEnabled(true);
rip_channels_box->setEnabled(true);
rip_autotrim_box->setEnabled(true);
rip_autotrim_spin->setEnabled(true);
rip_disk_bar->setPercentageVisible(false);
rip_disk_bar->reset();
rip_diskbar_label->setDisabled(true);
rip_trackbar_label->setDisabled(true);
rip_diskbar_label->setText(tr("Total Progress"));
rip_trackbar_label->setText(tr("Track Progress"));
item=(RDListViewItem *)rip_track_list->firstChild();
while(item!=NULL) {
item->setText(5,"");
item=(RDListViewItem *)item->nextSibling();
}
rip_cdrom->eject();
if(rip_aborting) {
QMessageBox::information(this,tr("Rip Complete"),tr("Rip aborted!"));
}
else {
QMessageBox::information(this,tr("Rip Complete"),tr("Rip complete!"));
}
}
开发者ID:WMTH,项目名称:rivendell,代码行数:96,代码来源:disk_ripper.cpp
示例12: QWidget
EditorView::EditorView(QWidget *parent) :
QWidget(parent)
{
p = new EditorViewPrivate;
p->save_timer = 0;
p->paperId = 0;
p->signal_blocker = false;
p->synced = true;
p->has_files = false;
if( !back_image )
back_image = new QImage(":/qml/Kaqaz/files/background.jpg");
if( !papers_image )
papers_image = new QImage(":/qml/Kaqaz/files/paper.png");
if( !paper_clip )
paper_clip = new QImage(":/qml/Kaqaz/files/paper-clip.png");
if( !paper_clip_off )
paper_clip_off = new QImage(":/qml/Kaqaz/files/paper-clip-off.png");
p->attach_img = *paper_clip;
p->title_font = Kaqaz::instance()->titleFont();
p->body_font = Kaqaz::instance()->bodyFont();
p->group_font.setFamily("Droid Kaqaz Sans");
p->group_font.setPointSize(9);
p->date_font.setFamily("Droid Kaqaz Sans");
p->date_font.setPointSize(8);
p->group = new GroupButton(this);
p->group->move(25,PAPER_BRD-1);
p->group->setFixedSize(110,30);
p->group->setFont(p->group_font);
p->title = new QLineEdit();
p->title->setPlaceholderText( tr("Title") );
p->title->setAlignment(Qt::AlignHCenter);
p->title->setFont(p->title_font);
p->title->setStyleSheet("QLineEdit{background: transparent; border: 0px solid translarent}");
p->body = new PaperTextArea();
p->body->setPlaceholderText( tr("Text...") );
p->body->setViewFont(p->body_font);
p->body->setStyleSheet("QTextEdit{background: transparent; border: 0px solid translarent}");
p->date = new QLabel(this);
p->date->setFixedWidth(200);
p->date->setFont(p->date_font);
p->top_layout = new QHBoxLayout();
p->top_layout->addSpacing(p->group->width());
p->top_layout->addWidget(p->title);
p->top_layout->addSpacing(p->group->width());
p->top_layout->setContentsMargins(0,0,0,0);
p->top_layout->setSpacing(0);
p->main_layout = new QVBoxLayout(this);
p->main_layout->addLayout(p->top_layout);
p->main_layout->addWidget(p->body);
p->main_layout->setContentsMargins(30,20,30,45);
p->main_layout->setSpacing(0);
p->attach_btn = new QPushButton(this);
p->attach_btn->setFixedSize( PAPER_CLP, PAPER_CLP );
p->attach_btn->move( width()-PAPER_CLP, height()-PAPER_CLP );
p->attach_btn->setStyleSheet("QPushButton{ border: 0px solid transparent; background: transparent }");
p->attach_btn->setCursor(Qt::PointingHandCursor);
p->files = new PaperFilesView(this);
p->files->setFixedSize( width(), FILES_HEIGHT );
p->files->move( 0, height()-FILES_HEIGHT );
p->files->hide();
setStyleSheet("QScrollBar:vertical { border: 0px solid transparent; background: transparent; max-width: 5px; min-width: 5px; }"
"QScrollBar::handle:vertical { border: 0px solid transparent; background: #aaaaaa; width: 5px; min-width: 5px; min-height: 30px }"
"QScrollBar::handle:hover { background: palette(highlight); }"
"QScrollBar::add-line:vertical { border: 0px solid transparent; background: transparent; height: 0px; subcontrol-position: bottom; subcontrol-origin: margin; }"
"QScrollBar::sub-line:vertical { border: 0px solid transparent; background: transparent; height: 0px; subcontrol-position: top; subcontrol-origin: margin; }" );
connect( p->title, SIGNAL(textChanged(QString)), SLOT(delayedSave()) );
connect( p->body , SIGNAL(textChanged()) , SLOT(delayedSave()) );
connect( p->group, SIGNAL(groupSelected(int)) , SLOT(delayedSave()) );
connect( p->attach_btn, SIGNAL(clicked()), p->files, SLOT(show()) );
connect( Kaqaz::instance(), SIGNAL(titleFontChanged()) , SLOT(titleFontChanged()) );
connect( Kaqaz::instance(), SIGNAL(bodyFontChanged()) , SLOT(bodyFontChanged()) );
connect( Kaqaz::database(), SIGNAL(revisionChanged(QString,int)), SLOT(revisionChanged(QString,int)) );
connect( Kaqaz::database(), SIGNAL(paperChanged(int)) , SLOT(paperChanged(int)) );
}
开发者ID:nvdnkpr,项目名称:kaqaz,代码行数:91,代码来源:editorview.cpp
示例13: QDialog
VerifyDlg::VerifyDlg( const char* workingDir, int fileno, const RangeList& ranges,
bool restore, QWidget* parent, const char* name )
: QDialog( parent, name, TRUE ),
_restore( restore ),
_proc( NULL ),
_workingDir( workingDir ),
_fileno( fileno ),
_ranges( ranges ),
_totalKBytes( 0.0 ),
_fileCount( 0 ),
_wroteStdin( TRUE ),
_aborted( FALSE ),
_done( FALSE )
{
// Calculate size of verify.
QListIterator<Range> i( _ranges.getRanges() );
_archiveSize = 0;
for ( ; i.current(); ++i ) {
_archiveSize += i.current()->getEnd() - i.current()->getStart();
}
_archiveSize = ( _archiveSize + 1 ) / 2;
if ( _restore ) {
setCaption( i18n( "KDat: Restore" ) );
setIconText( i18n( "KDat: Restore" ) );
} else {
setCaption( i18n( "KDat: Verify" ) );
setIconText( i18n( "KDat: Verify" ) );
}
resize( 500, 300 );
const int labelWidth = 96;
QFrame* f1 = new QFrame( this );
f1->setFrameStyle( QFrame::Panel | QFrame::Sunken );
QFrame* f2 = new QFrame( this );
f2->setFrameStyle( QFrame::Panel | QFrame::Sunken );
QLabel* lbl1 = new QLabel( i18n( "Elapsed time:" ), f1 );
lbl1->setFixedSize( labelWidth, lbl1->sizeHint().height() );
_elapsedTime = new QLabel( i18n( "00:00:00" ), f1 );
_elapsedTime->setFixedHeight( _elapsedTime->sizeHint().height() );
QLabel* lbl2 = new QLabel( i18n( "Time remaining:" ), f2 );
lbl2->setFixedSize( labelWidth, lbl2->sizeHint().height() );
_timeRemaining = new QLabel( i18n( "00:00:00" ), f2 );
_timeRemaining->setFixedHeight( _timeRemaining->sizeHint().height() );
QLabel* lbl3 = new QLabel( i18n( "Total kbytes:" ), f1 );
lbl3->setFixedSize( labelWidth, lbl3->sizeHint().height() );
QLabel* totalKbytes = new QLabel( Util::kbytesToString( _archiveSize ), f1 );
totalKbytes->setFixedHeight( totalKbytes->sizeHint().height() );
QLabel* lbl4 = new QLabel( i18n( "Kbytes read:" ), f2 );
lbl4->setFixedSize( labelWidth, lbl4->sizeHint().height() );
_kbytesRead = new QLabel( i18n( "0k" ), f2 );
_kbytesRead->setFixedHeight( _kbytesRead->sizeHint().height() );
QLabel* lbl5 = new QLabel( i18n( "Transfer rate:" ), f1 );
lbl5->setFixedSize( labelWidth, lbl5->sizeHint().height() );
_transferRate = new QLabel( i18n( "0k/min" ), f1 );
_transferRate->setFixedHeight( _transferRate->sizeHint().height() );
QLabel* lbl6;
if ( _restore ) {
lbl6 = new QLabel( i18n( "Files:" ), f2 );
lbl6->setFixedSize( labelWidth, lbl6->sizeHint().height() );
} else {
lbl6 = new QLabel( i18n( "Differences:" ), f2 );
lbl6->setFixedSize( labelWidth, lbl6->sizeHint().height() );
}
_files = new QLabel( "0", f2 );
_files->setFixedHeight( _files->sizeHint().height() );
if ( _restore ) {
_log = new LoggerWidget( i18n( "Restore log:" ), this );
|
请发表评论