这篇教程C++ updateWindowTitle函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中updateWindowTitle函数的典型用法代码示例。如果您正苦于以下问题:C++ updateWindowTitle函数的具体用法?C++ updateWindowTitle怎么用?C++ updateWindowTitle使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了updateWindowTitle函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: connectvoid QDesignerFormWindow::firstShow(){ // Set up handling of file name changes and set initial title. if (!m_windowTitleInitialized) { m_windowTitleInitialized = true; if (m_editor) { connect(m_editor, SIGNAL(fileNameChanged(QString)), this, SLOT(updateWindowTitle(QString))); updateWindowTitle(m_editor->fileName()); } } show();}
开发者ID:pk-codebox-evo,项目名称:remixos-usb-tool,代码行数:12,
示例2: mode void DeppointCardPage::updateWidgets() { typedef QWidgetList::const_iterator const_iterator; Mode currentMode = mode(); bool readOnly = viewMode == currentMode; for (const_iterator it = dataAwareWidgets_.begin(), end = dataAwareWidgets_.end(); it != end; ++it) { QWidget* widget = *it; if (QLineEdit* edit = qobject_cast<QLineEdit*>(widget)) { edit->setReadOnly(readOnly); } else if (QTextEdit* textEdit = qobject_cast<QTextEdit*>(widget)) { textEdit->setReadOnly(readOnly); } } bool peristance = createMode != currentMode && entityId(); int generalTabIndex = ui_.tabWidget->indexOf(ui_.generalTab); ui_.tabWidget->setTabEnabled(generalTabIndex, peristance); switch (currentMode) { case viewMode: if (entityId()) { updateWindowTitle(tr("Departure points - %1").arg(entityData_.shortName)); } showRequiredMarkers(false); break; case editMode: if (entityId()) { if (contentsChanged_) { updateWindowTitle(tr("Departure points - %1* - edit").arg(entityData_.shortName)); } else { updateWindowTitle(tr("Departure points - %1 - edit").arg(entityData_.shortName)); } } showRequiredMarkers(true); break; case createMode: updateWindowTitle(tr("Departure points - New departure point*")); showRequiredMarkers(true); break; } }
开发者ID:mabrarov,项目名称:chrono,代码行数:53,
示例3: Q_ASSERTvoid MainWindow::loadProject(Project_sV *project){ Q_ASSERT(project != NULL); resetDialogs(); Project_sV *projTemp = NULL; if (m_project != NULL) { projTemp = m_project; } m_project = project; m_wCanvas->load(m_project); m_wRenderPreview->load(m_project); updateWindowTitle(); if (projTemp != NULL) { // Do not delete the old project object earlier to avoid segfaults // (may still be used in the ShutterFunction dialog e.g.) delete projTemp; } connect(m_project->frameSource(), SIGNAL(signalNextTask(QString,int)), this, SLOT(slotNewFrameSourceTask(QString,int))); connect(m_project->frameSource(), SIGNAL(signalAllTasksFinished()), this, SLOT(slotFrameSourceTasksFinished())); m_project->frameSource()->initialize(); }
开发者ID:Ichthyostega,项目名称:slowmoVideo,代码行数:26,
示例4: updateWindowTitlevoid reservationHistoryDialog::showEvent(QShowEvent * event){ updateWindowTitle(); parameters->reservationHistoryMdl->select(); QDialog::showEvent(event);}
开发者ID:stoptherock1,项目名称:HSM,代码行数:7,
示例5: QMainWindowMainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), m_currentChanged(false), ui(new Ui::MainWindow){ ui->setupUi(this); // setup m_rv = new RenderView(); m_rv->setCaption("cspace"); m_rv->setCullingEnabled(true); ui->widgetView->layout()->addWidget(m_rv); // update slider information updateSliderInformation(); // update predicate predicate updatePredicateInformation(); // window title updateWindowTitle(); // force no-changes m_currentChanged = false;}
开发者ID:pdobrowo,项目名称:libcs2,代码行数:27,
示例6: updateWindowTitle// Called when the mode is entered.void DocumentModeState::onEntry(QEvent *pEvent){ ModeState::onEntry(pEvent); // Update main window title updateWindowTitle();}
开发者ID:gamedevtech,项目名称:breeze-2,代码行数:8,
示例7: updateWindowTitlevoid MainWindow::openImage(const QString& imageFilename) { if (imageFilename.length() > 0) { YaffsReadInfo readInfo = mYaffsModel->openImage(imageFilename); if (readInfo.result) { QModelIndex rootIndex = mYaffsModel->index(0, 0); mUi->treeView->expand(rootIndex); mUi->statusBar->showMessage("Opened image: " + imageFilename); updateWindowTitle(); QString summary("<table>" / "<tr><td width=120>Files:</td><td>" + QString::number(readInfo.numFiles) + "</td></tr>" + "<tr><td width=120>Directories:</td><td>" + QString::number(readInfo.numDirs) + "</td></tr>" + "<tr><td width=120>SymLinks:</td><td>" + QString::number(readInfo.numSymLinks) + "</td></tr>" + "<tr><td colspan=2><hr/></td></tr>" + "<tr><td width=120>HardLinks:</td><td>" + QString::number(readInfo.numHardLinks) + "</td></tr>" + "<tr><td width=120>Specials:</td><td>" + QString::number(readInfo.numSpecials) + "</td></tr>" + "<tr><td width=120>Unknowns:</td><td>" + QString::number(readInfo.numUnknowns) + "</td></tr>" + "<tr><td colspan=2><hr/></td></tr>" + "<tr><td width=120>Errors:</td><td>" + QString::number(readInfo.numErrorousObjects) + "</td></tr></table>"); if (readInfo.eofHasIncompletePage) { summary += "<br/><br/>Warning:<br/>Incomplete page found at end of file"; } QMessageBox::information(this, "Summary", summary); } else { QString msg = "Error opening image: " + imageFilename; mUi->statusBar->showMessage(msg); QMessageBox::critical(this, "Error", msg); } setupActions(); }}
开发者ID:Abrahan668,项目名称:yaffey,代码行数:32,
示例8: QStringbool GenericHID::DoSaveAs(){ // Make the xml file to save QString s = m_pScene->makeXML(); if ( s.length() > 0 ) { for (;;) { QString sFilename = QFileDialog::getSaveFileName( this, "Save GenericHID device", m_sLastFile, QString("Generic HID device file (*.ghd);;All files (*)") ); if ( sFilename.isEmpty() || sFilename.isNull() ) return false; QFileInfo fi(sFilename); if ( fi.suffix().isEmpty() ) sFilename.append( ".ghd" ); QFile file(sFilename.toLatin1().constData()); if ( !file.open( QIODevice::WriteOnly | QIODevice::Truncate ) ) { QMessageBox::critical( this, "Can't save", QString("Failed to save file '%1':%2").arg(sFilename).arg(file.errorString()) ); } else { m_sLastFile = sFilename; file.write( s.toLatin1() ); file.close(); break; } } m_MRU.append( m_sLastFile ); m_sLastFileContents = s; updateWindowTitle(); } return true;}
开发者ID:neomilium,项目名称:GenericHID,代码行数:35,
示例9: trvoid MainWindow::on_actionOpen_File_triggered(){ filePath = QFileDialog::getOpenFileName(this, tr("Open File"), "", tr("Files (*.dbp)")); QFile file(filePath); file.open(QIODevice::ReadOnly); QDataStream in(&file); QString outVersion; QVector<QVector<QString> > outAttrTable; QVector<QVector<int> > outVMatrix; QVector<QVector<QString> > outUniTable; QString outdbName; in >> outVersion >> outAttrTable >> outVMatrix >> outUniTable >> outdbName; if (outVersion != version && outVersion != "0.85") { qDebug() << "Разные версии"; //QMessageBox::information(this, tr("Ошибка"), tr("Выбран некорректный файл.")); return; } storage->setAttrTable(outAttrTable); storage->setVMatrix(outVMatrix); storage->setUniTable(outUniTable); storage->setdbName(outdbName); qDebug() << filePath << "opened."; if (storage->getAttrTable()->isEmpty() || storage->getVMatrix()->isEmpty()) return; on_normButton_clicked(); updateSuperKeyLabel(); updateWindowTitle();}
开发者ID:ButtNaked,项目名称:DBprom2,代码行数:31,
示例10: xcb_ungrab_keyboardvoid X11WindowedBackend::grabKeyboard(xcb_timestamp_t time){ const bool oldState = m_keyboardGrabbed; if (m_keyboardGrabbed) { xcb_ungrab_keyboard(m_connection, time); xcb_ungrab_pointer(m_connection, time); m_keyboardGrabbed = false; } else { const auto c = xcb_grab_keyboard_unchecked(m_connection, false, window(), time, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC); ScopedCPointer<xcb_grab_keyboard_reply_t> grab(xcb_grab_keyboard_reply(m_connection, c, nullptr)); if (grab.isNull()) { return; } if (grab->status == XCB_GRAB_STATUS_SUCCESS) { const auto c = xcb_grab_pointer_unchecked(m_connection, false, window(), XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE | XCB_EVENT_MASK_POINTER_MOTION | XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_LEAVE_WINDOW, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC, window(), XCB_CURSOR_NONE, time); ScopedCPointer<xcb_grab_pointer_reply_t> grab(xcb_grab_pointer_reply(m_connection, c, nullptr)); if (grab.isNull() || grab->status != XCB_GRAB_STATUS_SUCCESS) { xcb_ungrab_keyboard(m_connection, time); return; } m_keyboardGrabbed = true; } } if (oldState != m_keyboardGrabbed) { updateWindowTitle(); xcb_flush(m_connection); }}
开发者ID:shadeslayer,项目名称:kwin,代码行数:34,
示例11: protocolsAtomvoid X11WindowedBackend::createWindow(){ Xcb::Atom protocolsAtom(QByteArrayLiteral("WM_PROTOCOLS"), false, m_connection); Xcb::Atom deleteWindowAtom(QByteArrayLiteral("WM_DELETE_WINDOW"), false, m_connection); for (int i = 0; i < initialOutputCount(); ++i) { Output o; o.window = xcb_generate_id(m_connection); uint32_t mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK; const uint32_t values[] = { m_screen->black_pixel, XCB_EVENT_MASK_KEY_PRESS | XCB_EVENT_MASK_KEY_RELEASE | XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE | XCB_EVENT_MASK_POINTER_MOTION | XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_LEAVE_WINDOW | XCB_EVENT_MASK_STRUCTURE_NOTIFY | XCB_EVENT_MASK_EXPOSURE }; o.size = initialWindowSize(); if (!m_windows.isEmpty()) { const auto &p = m_windows.last(); o.internalPosition = QPoint(p.internalPosition.x() + p.size.width(), 0); } xcb_create_window(m_connection, XCB_COPY_FROM_PARENT, o.window, m_screen->root, 0, 0, o.size.width(), o.size.height(), 0, XCB_WINDOW_CLASS_INPUT_OUTPUT, XCB_COPY_FROM_PARENT, mask, values); o.winInfo = new NETWinInfo(m_connection, o.window, m_screen->root, NET::WMWindowType, NET::Properties2()); o.winInfo->setWindowType(NET::Normal); o.winInfo->setPid(QCoreApplication::applicationPid()); QIcon windowIcon = QIcon::fromTheme(QStringLiteral("kwin")); auto addIcon = [&o, &windowIcon] (const QSize &size) { if (windowIcon.actualSize(size) != size) { return; } NETIcon icon; icon.data = windowIcon.pixmap(size).toImage().bits(); icon.size.width = size.width(); icon.size.height = size.height(); o.winInfo->setIcon(icon, false); }; addIcon(QSize(16, 16)); addIcon(QSize(32, 32)); addIcon(QSize(48, 48)); xcb_map_window(m_connection, o.window); m_protocols = protocolsAtom; m_deleteWindowProtocol = deleteWindowAtom; xcb_change_property(m_connection, XCB_PROP_MODE_REPLACE, o.window, m_protocols, XCB_ATOM_ATOM, 32, 1, &m_deleteWindowProtocol); m_windows << o; } updateWindowTitle(); xcb_flush(m_connection);}
开发者ID:shadeslayer,项目名称:kwin,代码行数:60,
示例12: mainint main(int argc, char** argv) { fullscreen = false; grab = false; quit = false; initScreen(); initFrameBuffer(); createGLContext(); createColorMap(); createWindow(); createBlankCursor(); int x = 0; while(x<5000) { renderFrame(); updateWindowTitle(); x++; } /* Cleanup glXDestroyWindow(display, glxwindow); xcb_destroy_window(connection, window); glXDestroyContext(display, context); XCloseDisplay(display); */ return 0;}
开发者ID:lubosz,项目名称:smalldemo,代码行数:31,
示例13: updateWindowTitlevoid KviMainWindow::windowActivated(KviWindow * wnd, bool bForce){ if(!wnd) return; // this can happen? // ASSERT(m_pWinList->findRef(wnd)) // unless we want to bForce the active window to be re-activated if(g_pActiveWindow == wnd && !bForce) return; if(g_pActiveWindow != wnd) { if(g_pActiveWindow) g_pActiveWindow->lostUserFocus(); g_pActiveWindow = wnd; } updateWindowTitle(wnd); m_pWindowList->setActiveItem(wnd->windowListItem()); bool bActiveContextChanged = (m_pActiveContext != wnd->context()); m_pActiveContext = wnd->context(); if(g_pActiveWindow->view()) g_pActiveWindow->view()->clearUnreaded(); emit activeWindowChanged(); if(bActiveContextChanged) emit activeContextChanged(); KVS_TRIGGER_EVENT_0(KviEvent_OnWindowActivated, wnd);}
开发者ID:un1versal,项目名称:KVIrc,代码行数:33,
示例14: offlinebool MainWindow::logout(bool isShuttingDown){ if (isShuttingDown) { this->isShuttingDown = true; } offline(!isShuttingDown); if (isShuttingDown) { trayIcon->setVisible(false); hide(); } resetChildWindows(); buttonsFrame->hide(); saveSettings(); cleanup(); if(!isShuttingDown) { updateWindowTitle(); showLogonWidget(); } return true;}
开发者ID:ildus,项目名称:moodbox_aka_risovaska,代码行数:30,
示例15: mkdirvoid ImageDialog::savePic(){ //Change NetPicName if(currentSavePath.isNull()) { if(access("D:/Netpics", 0) == -1) { mkdir("D://Netpics"); mkdir("D://Netpics//MyPics"); currentSavePath="D:/Netpics/MyPics"; } else { mkdir("D://Netpics//MyPics"); currentSavePath="D:/Netpics/MyPics"; } //return 0; } QString tempcurrentSavePath(currentSavePath); NetPicName=tempcurrentSavePath.append(QString("/RawH%1.raw").arg(QString::number(NetFileIndex), 3, QLatin1Char('0'))); QFile streamfile(NetPicName); bool OpenOk=streamfile.open(QIODevice::WriteOnly); if(!OpenOk) { QMessageBox::information(this,tr("file"),tr("Can't open The File")); return; } streamfile.write((char*)tjImage.unCorrectedRaw, tjImage.imageSize);// streamfile.write((char*)(&tjSafeJointData),sizeof(SafeJointData));// streamfile.write((char*)(&tjSafeSensorData),sizeof(SafeSensorData)); /*******************************************/ for (int i=0;i<SafeJointData::numOfJoints;i++) { streamfile.write((char*)(&tjSafeJointData.angles[i]),sizeof(double)); } streamfile.write((char*)(&tjSafeJointData.timeStamp),sizeof(unsigned)); /********************************************/ for (int i=0;i<SafeSensorData::numOfSensors;i++) { streamfile.write((char*)(&tjSafeSensorData.data[i]),sizeof(float)); } for(int i = 0; i < SafeJointData::numOfJoints; ++i) { streamfile.write((char*)(&tjSafeSensorData.loads[i]),sizeof(float)); streamfile.write((char*)(&tjSafeSensorData.temperatures[i]),sizeof(float)); } streamfile.write((char*)(&tjSafeSensorData.timeStamp),sizeof(unsigned)); /**********************************************/ emit updateWindowTitle(tr("Image ***NetPic*** ").append(NetPicName)); //存动作值 streamfile.close(); NetFileIndex++; update(); show(); raise(); activateWindow();}
开发者ID:spyfree,项目名称:tjNaoBackup,代码行数:60,
示例16: setWindowModifiedvoid QDesignerFormWindow::updateChanged(){ // Sometimes called after form window destruction. if (m_editor) { setWindowModified(m_editor->isDirty()); updateWindowTitle(m_editor->fileName()); }}
开发者ID:pk-codebox-evo,项目名称:remixos-usb-tool,代码行数:8,
示例17: updateWindowTitlevoid InspectorClientQt::showWindow(){ updateWindowTitle();#if ENABLE(INSPECTOR) m_inspectedWebPage->d->inspectorController()->setWindowVisible(true, true);#endif}
开发者ID:flwh,项目名称:Alcatel_OT_985_kernel,代码行数:8,
示例18: updateWindowTitlevoid MiniFlo::fileLoaded( const QString & fileName ){ m_file->root()->setSelected(true); m_ui.graphicsView->setZoomView(100); m_ui.graphicsView->ensureVisible( m_file->root() ); updateWindowTitle( fileName ); m_file->scene()->update();}
开发者ID:AlanLZY,项目名称:textroom,代码行数:8,
示例19: documentCleanStateChangedvoid MainWindow::setCurrentFile(const QString &fileName){ m_menuRecentFiles->usingFile(fileName); m_currentFilename = fileName; documentCleanStateChanged(true); updateWindowTitle();}
开发者ID:Bob-IT,项目名称:gnucash,代码行数:8,
示例20: updateWindowTitlevoid QgsOptionsDialogBase::optionsStackedWidget_CurrentChanged( int indx ){ mOptListWidget->blockSignals( true ); mOptListWidget->setCurrentRow( indx ); mOptListWidget->blockSignals( false ); updateWindowTitle();}
开发者ID:MERIDIAN-CHARTWARE,项目名称:QGIS-1,代码行数:8,
示例21: isWindowModifiedvoid MainWindow::documentCleanStateChanged(bool documentIsClean){ bool unchanged = (documentIsClean == isWindowModified()); setWindowModified(!documentIsClean); if (!unchanged) updateWindowTitle();}
开发者ID:Bob-IT,项目名称:gnucash,代码行数:8,
示例22: updateWindowTitlevoid InspectorClientQt::showWindow(){ if (!m_webPage) return; updateWindowTitle(); m_webPage->view()->show(); m_inspectedWebPage->d->page->inspectorController()->setWindowVisible(true);}
开发者ID:acss,项目名称:owb-mirror,代码行数:9,
示例23: switchbool MainWindow::event(QEvent *event){ switch (event->type()) { case QEvent::LanguageChange: m_ui->retranslateUi(this); updateWindowTitle(m_windowsManager->getTitle()); if (m_actionsManager) { m_actionsManager->updateActions(); } break; case QEvent::WindowStateChange: SessionsManager::markSessionModified(); if (isFullScreen()) { m_actionsManager->getAction(QLatin1String("FullScreen"))->setIcon(Utils::getIcon(QLatin1String("view-restore"))); m_ui->statusBar->hide(); if (m_menuBar) { m_menuBar->hide(); } centralWidget()->installEventFilter(this); } else { m_actionsManager->getAction(QLatin1String("FullScreen"))->setIcon(Utils::getIcon(QLatin1String("view-fullscreen"))); m_ui->statusBar->show(); if (m_menuBar) { m_menuBar->show(); } centralWidget()->removeEventFilter(this); } break; case QEvent::WindowActivate: SessionsManager::setActiveWindow(this); case QEvent::Resize: case QEvent::Move: SessionsManager::markSessionModified(); break; default: break; } return QMainWindow::event(event);}
开发者ID:jernejs,项目名称:otter,代码行数:57,
示例24: filevoid ImageDialog::LoadRawStream(){ if (imageBuffer != NULL) { delete[] imageBuffer; imageBuffer=NULL; } QFile file(rawString); if(!file.open(QIODevice::ReadOnly)) { m_CurrentFileIndex=0; QMessageBox::information(this,tr("file"),tr("File not found")); return; } emit updateWindowTitle(tr("Image ***LocalPic*** ").append(rawString)); int filesize = file.size(); imageBuffer=new char[filesize]; if (imageBuffer == NULL) { imageBuffer = NULL; QMessageBox::information(this,tr("file"),tr("Not enough memory to load file")); return; } file.read(imageBuffer, filesize); file.close(); //memcpy(unclassifyed, imageBuffer, normalSize); //Set TJImage Buffer! memcpy(tjImage.unCorrectedRaw, imageBuffer,tjImage.imageSize);// memcpy((char*)(&tjSafeJointData),imageBuffer+tjImage.imageSize,sizeof(SafeJointData));// memcpy((char*)(&tjSafeSensorData),imageBuffer+tjImage.imageSize+sizeof(SafeJointData),sizeof(SafeSensorData)); int i; /*************************************************/ for (i=0;i<SafeJointData::numOfJoints;i++) { memcpy(&(tjSafeJointData.angles[i]),imageBuffer+tjImage.imageSize+i*sizeof(double),sizeof(double)); } int size=tjImage.imageSize+SafeJointData::numOfJoints*sizeof(double); memcpy(&tjSafeJointData.timeStamp,imageBuffer+size,sizeof(unsigned)); size=size+sizeof(unsigned); /***************************************************/ for (i=0;i<SafeSensorData::numOfSensors;i++) { memcpy(&(tjSafeSensorData.data[i]),imageBuffer+size+i*sizeof(float),sizeof(float)); } size=size+SafeSensorData::numOfSensors*sizeof(float); for(i = 0; i < 2*SafeJointData::numOfJoints; ++i) { memcpy(&(tjSafeSensorData.loads[i]),imageBuffer+size+i*sizeof(float),sizeof(float)); i=i+1; memcpy(&(tjSafeSensorData.temperatures[i]),imageBuffer+size+i*sizeof(float),sizeof(float)); } size=size+2*SafeJointData::numOfJoints*sizeof(float); memcpy(&(tjSafeSensorData.timeStamp),imageBuffer+size,sizeof(unsigned)); sendData2messageQueue(idUncorrectedRaw,idImageDialog,idVisionThread,tjImage.unCorrectedRaw,tjImage.imageSize); sendData2messageQueue(idSensoryJointData,idImageDialog,idVisionThread,&tjSafeJointData,sizeof(SafeJointData)); sendData2messageQueue(idSimSensorData,idImageDialog,idVisionThread,&tjSafeSensorData,sizeof(SafeSensorData));}
开发者ID:spyfree,项目名称:tjNaoBackup,代码行数:57,
示例25: modevoid AutoenterpriseCardPage::updateWidgets(){ const Mode currentMode = mode(); bool readOnly = viewMode == currentMode; WidgetUtility::setReadOnly(dataAwareWidgets_, readOnly); bool peristance = createMode != currentMode && entityId(); int generalTabIndex = ui_.tabWidget->indexOf(ui_.generalTab); ui_.tabWidget->setTabEnabled(generalTabIndex, peristance); switch (currentMode) { case viewMode: if (entityId()) { updateWindowTitle(tr("Autoenterprises - %1").arg(entityData_.shortName)); } showRequiredMarkers(false); break; case editMode: if (entityId()) { if (contentsChanged_) { updateWindowTitle(tr("Autoenterprises - %1* - edit") .arg(entityData_.shortName)); } else { updateWindowTitle(tr("Autoenterprises - %1 - edit") .arg(entityData_.shortName)); } } showRequiredMarkers(true); break; case createMode: updateWindowTitle(tr("Autoenterprises - New autoenterprise*")); showRequiredMarkers(true); break; } }
开发者ID:mabrarov,项目名称:chrono,代码行数:44,
示例26: dialogvoid B9Edit::openJob(QString infile){ QSettings settings; if(infile.isEmpty()) { QFileDialog dialog(this); infile = dialog.getOpenFileName(this,"Open B9 Job", settings.value("WorkingDir").toString(),tr("B9 Job Files (*.b9j);;All files (*.*)")); if(infile.isEmpty())//user hits cancel.... return; } if(dirtied) { QMessageBox::StandardButton ret; ret = QMessageBox::warning(this, tr("B9Edit"), tr("The document has been modified./n" "Do you want to save your changes?"), QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel); if (ret == QMessageBox::Yes) { saveJob(); } else if (ret == QMessageBox::Cancel) { return; } } QFile file(infile); SetDir(QFileInfo(file).absolutePath()); if(!cPJ.loadCPJ(&file)) { QMessageBox::warning(this, tr("B9Edit"), QString("Unable To Load Job:/n" +QFileInfo(infile).baseName()),QMessageBox::Ok); return; } currJobFile = infile; emit setVersion(cPJ.getVersion()); emit setName(cPJ.getName()); emit setDescription(cPJ.getDescription()); emit setXYPixel(QString().number(cPJ.getXYPixel().toDouble()*1000)); emit setZLayer(QString().number(cPJ.getZLayer().toDouble()*1000)); dirtied = false; updateSliceIndicator(); updateWindowTitle(); pEditView->ClearUndoBuffer(); pEditView->GoToSlice(0); pEditView->UpdateWidgets(); }
开发者ID:denisoft,项目名称:B9Creator,代码行数:56,
示例27: fillEditorFromServicevoid SvCreator::refreshUIWidgets(void){ m_hasLeftUpdates = true; m_root = m_cdata.bpnodes.find(ngrt4n::ROOT_ID); m_editor->fillInEditorWithContent(*m_root); m_tree->build(); fillEditorFromService(m_tree->rootItem()); updateWindowTitle("*");}
开发者ID:jameseriot,项目名称:realopinsight-workstation,代码行数:10,
示例28: updateWindowTitlevoid HelpWidget::setCurrentViewer(HelpViewer *viewer){ m_viewerStack->setCurrentWidget(viewer); m_backAction->setEnabled(viewer->isBackwardAvailable()); m_forwardAction->setEnabled(viewer->isForwardAvailable()); m_addBookmarkAction->setEnabled(isBookmarkable(viewer->source())); if (m_style == ExternalWindow) updateWindowTitle(); emit sourceChanged(viewer->source());}
开发者ID:qtproject,项目名称:qt-creator,代码行数:10,
注:本文中的updateWindowTitle函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ update_brightness函数代码示例 C++ updateWidgets函数代码示例 |