这篇教程C++ zoomIn函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中zoomIn函数的典型用法代码示例。如果您正苦于以下问题:C++ zoomIn函数的具体用法?C++ zoomIn怎么用?C++ zoomIn使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了zoomIn函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: modifiedEventvoid GenericCodeEditor::wheelEvent( QWheelEvent * e ){ // FIXME: Disable zooming for now, to avoid nasty effect when Ctrl // is unintentionally pressed while inertial scrolling is going on. // Moreover, Ctrl|Shift + Wheel scrolls by pages, which is also // rather annoying. // So rather just forward the event without modifiers. QWheelEvent modifiedEvent( e->pos(), e->globalPos(), e->delta(), e->buttons(), 0, e->orientation() ); QPlainTextEdit::wheelEvent( &modifiedEvent ); return;#if 0 if (e->modifiers() == Qt::ControlModifier) { if (e->delta() > 0) zoomIn(); else zoomOut(); return; } QPlainTextEdit::wheelEvent(e);#endif}
开发者ID:gitter-badger,项目名称:supercollider,代码行数:27,
示例2: QActionvoid HelpBrowser::createActions(){ QAction * action; OverridingAction *ovrAction; mActions[GoHome] = action = new QAction(tr("Home"), this); connect( action, SIGNAL(triggered()), this, SLOT(goHome()) ); mActions[DocClose] = ovrAction = new OverridingAction(tr("Close"), this); connect( ovrAction, SIGNAL(triggered()), this, SLOT(closeDocument()) ); ovrAction->addToWidget(mWebView); mActions[ZoomIn] = ovrAction = new OverridingAction(tr("Zoom In"), this); connect(ovrAction, SIGNAL(triggered()), this, SLOT(zoomIn())); ovrAction->addToWidget(mWebView); mActions[ZoomOut] = ovrAction = new OverridingAction(tr("Zoom Out"), this); connect(ovrAction, SIGNAL(triggered()), this, SLOT(zoomOut())); ovrAction->addToWidget(mWebView); mActions[ResetZoom] = ovrAction = new OverridingAction(tr("Reset Zoom"), this); connect(ovrAction, SIGNAL(triggered()), this, SLOT(resetZoom())); ovrAction->addToWidget(mWebView); mActions[Evaluate] = ovrAction = new OverridingAction(tr("Evaluate as Code"), this); connect(ovrAction, SIGNAL(triggered()), this, SLOT(evaluateSelection())); ovrAction->addToWidget(mWebView); // For the sake of display: mWebView->pageAction(QWebPage::Copy)->setShortcut( QKeySequence::Copy ); mWebView->pageAction(QWebPage::Paste)->setShortcut( QKeySequence::Paste );}
开发者ID:DarienBrito,项目名称:supercollider,代码行数:32,
示例3: QActionvoid ImageViewer::createActions(){ openAct = new QAction(tr("&Open..."), this); openAct->setShortcut(tr("Ctrl+O")); connect(openAct, SIGNAL(triggered()), this, SLOT(open())); saveAct = new QAction(tr("&Save..."), this); saveAct->setShortcut(tr("Ctrl+S")); connect(saveAct, SIGNAL(triggered()), this, SLOT(save())); saveAct->setEnabled(false); exitAct = new QAction(tr("E&xit"), this); exitAct->setShortcut(tr("Ctrl+Q")); connect(exitAct, SIGNAL(triggered()), this, SLOT(close())); zoomInAct = new QAction(tr("Zoom &In (25%)"), this); zoomInAct->setShortcut(tr("Ctrl++")); zoomInAct->setEnabled(false); connect(zoomInAct, SIGNAL(triggered()), this, SLOT(zoomIn())); zoomOutAct = new QAction(tr("Zoom &Out (25%)"), this); zoomOutAct->setShortcut(tr("Ctrl+-")); zoomOutAct->setEnabled(false); connect(zoomOutAct, SIGNAL(triggered()), this, SLOT(zoomOut())); normalSizeAct = new QAction(tr("&Normal Size"), this); normalSizeAct->setShortcut(tr("Ctrl+S")); normalSizeAct->setEnabled(false); connect(normalSizeAct, SIGNAL(triggered()), this, SLOT(normalSize())); fitToWindowAct = new QAction(tr("&Fit to Window"), this); fitToWindowAct->setEnabled(false); fitToWindowAct->setCheckable(true); fitToWindowAct->setShortcut(tr("Ctrl+F")); connect(fitToWindowAct, SIGNAL(triggered()), this, SLOT(fitToWindow())); aboutAct = new QAction(tr("&About"), this); connect(aboutAct, SIGNAL(triggered()), this, SLOT(about())); aboutQtAct = new QAction(tr("About &Qt"), this); connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt())); proceedAct = new QAction(tr("Proceed image"), this); proceedAct->setEnabled(false); proceedAct->setShortcut(tr("Ctrl+P")); connect(proceedAct, SIGNAL(triggered()),this, SLOT(proceed())); proceedByStepAct = new QAction(tr("Proceed image by step"), this); proceedByStepAct->setEnabled(false); connect(proceedByStepAct, SIGNAL(triggered()),this, SLOT(proceedByStep())); // Log function imageProcessor = new ImageProcessor(); connect(imageProcessor,SIGNAL(sendLogMessage(QString,int)), this,SLOT(writeLog(QString,int))); connect(imageProcessor,SIGNAL(sendImage(QImage&)), this,SLOT(updateImage(QImage&)));}
开发者ID:itroot,项目名称:university-tasks,代码行数:60,
示例4: QActionvoid EditorWindow::createActions(){ openAct = new QAction(tr("&Open"), this); openAct->setShortcut(QKeySequence::Open); connect(openAct, SIGNAL(triggered()), this, SLOT(openImage())); saveAct = new QAction(tr("&Save"), this); saveAct->setShortcut(QKeySequence::Save); connect(saveAct, SIGNAL(triggered()), this, SLOT(saveImage())); saveAsAct = new QAction(tr("Save As"), this); saveAsAct->setShortcut(QKeySequence::SaveAs); connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveImageAs())); quitAct = new QAction(tr("Quit"), this); quitAct->setShortcut(QKeySequence::Quit); connect(quitAct, SIGNAL(triggered()), this, SLOT(close())); zoomInAct = new QAction(tr("Zoom In"), this); zoomInAct->setShortcut(QKeySequence::ZoomIn); connect(zoomInAct, SIGNAL(triggered()), imageWidget, SLOT(zoomIn())); zoomOutAct = new QAction(tr("Zoom Out"), this); zoomOutAct->setShortcut(QKeySequence::ZoomOut); connect(zoomOutAct, SIGNAL(triggered()), imageWidget, SLOT(zoomOut())); connect(imageWidget, SIGNAL(zoomOutAvailableChanged(bool)), zoomOutAct, SLOT(setEnabled(bool))); zoomOriginalAct = new QAction(tr("Actual Size"), this); connect(zoomOriginalAct, SIGNAL(triggered()), imageWidget, SLOT(zoomOriginal())); zoomByWheelAct = new QAction(tr("Zoom by Mouse Wheel"), this); zoomByWheelAct->setCheckable(true); zoomByWheelAct->setChecked(false); connect(zoomByWheelAct, SIGNAL(toggled(bool)), imageWidget, SLOT(setWheelZoom(bool))); autoContrastAct = new QAction(tr("Auto Contrast"), this); autoContrastAct->setToolTip(tr("Apply luminance histogram stretching")); connect(autoContrastAct, SIGNAL(triggered()), this, SLOT(doAutoContrast())); autoLevelsAct = new QAction(tr("Auto Levels"), this); autoLevelsAct->setToolTip(tr("Apply channel-wise RGB histogram stretching")); connect(autoLevelsAct, SIGNAL(triggered()), this, SLOT(doAutoLevels())); whiteBalanceAct = new QAction(tr("Correct White Balance"), this); whiteBalanceAct->setToolTip(tr("Apply white balance correction using greyworld model")); connect(whiteBalanceAct, SIGNAL(triggered()), this, SLOT(doWhiteBalance())); geometryAct = new QAction(tr("Scale/Rotate"), this); geometryAct->setToolTip(tr("Scale and rotate image relative to the center")); connect(geometryAct, SIGNAL(triggered()), this, SLOT(doGeometryTransform())); filterAct = new QAction(tr("Filters && Effects"), this); filterAct->setToolTip(tr("Open filtration dialog")); connect(filterAct, SIGNAL(triggered()), this, SLOT(doFilter())); convolutionAct = new QAction(tr("Convolution"), this); convolutionAct->setToolTip(tr("Apply convolution with arbitrary kernel")); connect(convolutionAct, SIGNAL(triggered()), this, SLOT(doConvolution()));}
开发者ID:romovpa,项目名称:machgraphics,代码行数:59,
示例5: zoomIn/** * zooms out by factor f */void RS_GraphicView::zoomOut(double f, const RS_Vector& center) { if (f<1.0e-6) { RS_DEBUG->print(RS_Debug::D_WARNING, "RS_GraphicView::zoomOut: invalid factor"); return; } zoomIn(1/f, center);}
开发者ID:CNClaus,项目名称:LibreCAD,代码行数:11,
示例6: zoomIn/** We received a mouse wheel movement. */void CSailDispLabel::wheelEvent( QWheelEvent *event){ if (event->delta()>0) zoomIn(); else zoomOut(); redraw();}
开发者ID:sailcut,项目名称:sailcut,代码行数:10,
示例7: zoomIn//!//! Event handler for mouse wheel events.//!//! /param event The description of the mouse wheel event.//!void BaseGraphicsView::wheelEvent ( QWheelEvent *event ){ if (event->delta() != 0) if (event->delta() > 0) zoomIn(); else zoomOut();}
开发者ID:banduladh,项目名称:levelfour,代码行数:13,
示例8: zoomInvoid GraphicsView::wheelEvent(QWheelEvent *event) { if(event->delta() > 0) { emit zoomIn(); } else { emit zoomOut(); }}
开发者ID:Theverat,项目名称:NormalmapGenerator,代码行数:8,
示例9: kdDebug// public slotvoid kpMainWindow::slotZoomIn (){#if DEBUG_KP_MAIN_WINDOW kdDebug () << "kpMainWindow::slotZoomIn ()" << endl;#endif zoomIn (false/*don't center under cursor*/);}
开发者ID:serghei,项目名称:kde3-kdegraphics,代码行数:9,
示例10: wheelEventvoid ExprTextEdit::wheelEvent(QWheelEvent* event){ if(event->modifiers() == Qt::ControlModifier){ if(event->delta()>0) zoomIn(); else if(event->delta()<0) zoomOut(); } return QTextEdit::wheelEvent(event);}
开发者ID:ezhangle,项目名称:SeExpr,代码行数:8,
示例11: zoomIn/** * @brief Quick zoom in to a state of the Visualization model which has the * given bin size. The actual value of the bin size may en up being slightly * different because of the fine tuning performed by the model. * * @param binSize: an approximate value for the new size of the bins. */void KsGraphModel::quickZoomIn(uint64_t binSize){ double range, r; range = _histo.max - _histo.min; r = 1 - (binSize * _histo.n_bins) / range; zoomIn(r);}
开发者ID:rostedt,项目名称:trace-cmd,代码行数:15,
示例12: zoomOutvoid XTestZoom::onChanged(){ float velocity = m_recognizer->velocity(); if (velocity > m_minEffectiveVelocity) { zoomOut(); } else if (velocity < -m_minEffectiveVelocity){ zoomIn(); }}
开发者ID:Pardus-Kurumsal,项目名称:eta-gestemas,代码行数:9,
示例13: noRedovoid PaintArea::mousePressEvent(QMouseEvent *event){ if (event->button() == Qt::RightButton) _right = true; else _right = false; if (_tool != 0) { _redo.clear(); emit noRedo(); } if (_isselect) { Undo(); _isselect = false; emit noCopy(); } lastPoint = event->pos(); if (_tool == 7) { _history.push_back(image); emit enableUndo(); drawWord(lastPoint); } else if (_tool == 6) { _history.push_back(image); emit enableUndo(); drawBucket(event->pos()); } else if (_tool == 10) { _history.push_back(image); emit enableUndo(); Paste(event->pos()); } else if (_tool == 12) { if (event->button() == Qt::LeftButton) zoomIn(); else zoomOut(); } else { _history.push_back(image); emit enableUndo(); _scroll = image; scribbling = true; if (_tool == 1) drawLineTo(event->pos()); else if (_tool == 2) drawEraser(event->pos()); else if (_tool == 11) drawSpray(event->pos()); }}
开发者ID:ly2314,项目名称:QtPainter_Qt5,代码行数:57,
示例14: setZOOM_FACTORvoid MyTextBrowser::setZOOM_FACTOR(int factor){#ifdef NO_WEBKIT if(factor > 1) zoomIn(); else zoomOut();#else setZoomFactor(factor);#endif}
开发者ID:pvbrowser,项目名称:pvb,代码行数:9,
示例15: QGraphicsViewScalableWrapper::ScalableWrapper(QTextEdit* _editor, QWidget* _parent) : QGraphicsView(_parent), m_scene(new QGraphicsScene), m_editor(_editor), m_zoomRange(1), m_gestureZoomInertionBreak(0){ // // Отслеживаем жесты // grabGesture(Qt::PinchGesture); // // Всегда показываем полосы прокрутки // setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn); // // Предварительная настройка редактора текста // // FIXME: непонятно как быть с предком, у встраиваемого виджета не должно быть родителя, // но как в таком случае освобождать память? // m_editor->setParent(0); m_editor->setContextMenuPolicy(Qt::PreventContextMenu); m_editor->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); m_editor->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn); m_editor->installEventFilter(this); // // Настраиваем само представление // m_rect = m_scene->addRect(0, 0, 1, 1, QPen(), Qt::red); m_editorProxy = m_scene->addWidget(m_editor); setScene(m_scene); // // Отключаем действия полос прокрутки, чтобы в дальнейшем проксировать ими // полосы прокрутки самого редактора текста // horizontalScrollBar()->disconnect(); verticalScrollBar()->disconnect(); // // Синхронизация значения ролика в обе стороны // setupScrollingSynchronization(true); // // Добавляем возможность масштабирования при помощи комбинаций Ctrl +/- // QShortcut* zoomInShortcut = new QShortcut(QKeySequence("Ctrl++"), this); connect(zoomInShortcut, SIGNAL(activated()), this, SLOT(zoomIn())); QShortcut* zoomOutShortcut = new QShortcut(QKeySequence("Ctrl+-"), this); connect(zoomOutShortcut, SIGNAL(activated()), this, SLOT(zoomOut()));}
开发者ID:dimkanovikov,项目名称:ScalableWrapper,代码行数:57,
示例16: zoomOutvoidPanner::wheelEvent(QWheelEvent *e){ if (e->delta() > 0) { emit zoomOut(); } else { emit zoomIn(); }}
开发者ID:tedfelix,项目名称:rosegarden,代码行数:9,
示例17: zoomInvoid Overview::wheelEvent(QWheelEvent* event){ if (event->delta() > 0) { zoomIn(); } else { zoomOut(); } event->accept();}
开发者ID:gottcode,项目名称:tetzle,代码行数:9,
示例18: zoomInvoid CFontPreview::wheelEvent(QWheelEvent *e){ if(e->delta()>0) zoomIn(); else if(e->delta()<0) zoomOut(); e->accept();}
开发者ID:mafrez,项目名称:plasma-desktop,代码行数:9,
示例19: QGraphicsScenevoid MainWindow::showEvent(QShowEvent *){ // Setting the QGraphicsScene scene = new QGraphicsScene(0,0,width()*2,height()*2); QPixmap bg; bg.load(":/image/backgroung.png"); bg = bg.scaled(width()*2,height()*2); scene->addPixmap(bg); ui->graphicsView->setScene(scene); ui->graphicsView-> scale(0.5,0.5); for(int i=0;i<10;i++){ scorenumberPic[i].load("://image/number_"+QString::number(i)+".png"); scorenumberPic[i]=scorenumberPic[i].scaled(scorenumberPic[i].width()*4,scorenumberPic[i].height()*4); } button = new QPushButton("",this); QPixmap icon; icon.load(":/image/restart.png"); icon = icon.scaled(800,800); button->setIcon(icon); button->setIconSize(QSize(70,70)); button->setGeometry(10,10,70,70); button->setFlat(true); button->show(); connect(button,SIGNAL(clicked(bool)),this,SLOT(restart())); button1 = new QPushButton("",this); icon.load(":/image/exit.png"); icon = icon.scaled(800,800); button1->setIcon(icon); button1->setIconSize(QSize(70,70)); button1->setGeometry(100,10,70,70); button1->setFlat(true); button1->show(); connect(button1,SIGNAL(clicked(bool)),this,SLOT(quitgame())); // Create world world = new b2World(b2Vec2(0.0f, -9.8f)); world->SetContactListener(&listener); // Setting Size GameItem::setGlobalSize(QSizeF(32,18),size()); // Create ground (You can edit here) itemList.push_back(new Land(32,-17,64,0,QPixmap(":/ground.pn").scaled(width()*2,height()/6.0),world,scene)); //itemList.push_back(new Land(32,1.5,3,35,QPixmap(":/ground.pn").scaled(width(),height()/6.0),world,scene));//r bound //itemList.push_back(new Land(0,1.5,3,35,QPixmap(":/ground.pn").scaled(width(),height()/6.0),world,scene));//l bound createStage(); createBird(blue); // Timer connect(&timer,SIGNAL(timeout()),this,SLOT(tick())); connect(&timer,SIGNAL(timeout()),this,SLOT(showScore())); timer.start(100/6); connect(this,SIGNAL(quitGame()),this,SLOT(QUITSLOT())); connect(&timer_z,SIGNAL(timeout()),this,SLOT(zoomIn())); connect(&timer_f,SIGNAL(timeout()),this,SLOT(followBird())); connect(&timer_waiter,SIGNAL(timeout()),this,SLOT(createBird()));}
开发者ID:EvanChenPrograming,项目名称:pd2-Angrybird,代码行数:56,
示例20: Q3CanvasViewSchemaEditor::SchemaEditor(QWidget *parent, SchemaGui *schemaGui, Engine * engine, PanelScrollView *panelScrollView) : Q3CanvasView(schemaGui, parent, NAME.c_str(),0), _engine(engine), _schemaGui(schemaGui), _state(IDLE), _zoom(1), _activeConnection(0), _contextMenuPos(0,0), _contextGear(NULL), _panelScrollView(panelScrollView), _selectBox(NULL){ viewport()->setMouseTracking(TRUE); setAcceptDrops(TRUE); _contextMenu = new Q3PopupMenu(this); _gearListMenu = new GearListMenu(this); _gearListMenu->create(); _contextMenu->insertItem("Gears", _gearListMenu); QObject::connect(_gearListMenu, SIGNAL(gearSelected(QString)), this, SLOT(slotMenuGearSelected(QString))); _metaGearListMenu = new MetaGearListMenu(this); _metaGearListMenu->create(); _contextMenu->insertItem("MetaGears", _metaGearListMenu); QObject::connect(_metaGearListMenu, SIGNAL(metaGearSelected(QFileInfo*)), this, SLOT(slotMenuMetaGearSelected(QFileInfo*))); _contextMenu->insertItem("New MetaGear", this, SLOT(slotNewMetaGear())); _gearContextMenu = new Q3PopupMenu(this); _gearContextMenu->insertItem("delete", this, SLOT(slotGearDelete())); _gearContextMenu->insertItem("Properties", this, SLOT(slotGearProperties())); _gearContextMenu->insertItem("ZoomIn", this, SLOT(zoomIn())); _gearContextMenu->insertItem("ZoomOut", this, SLOT(zoomOut())); _gearContextMenu->insertItem("About"); _metaGearContextMenu = new Q3PopupMenu(this); _metaGearContextMenu->insertItem("delete", this, SLOT(slotGearDelete()),Qt::Key_Delete); _metaGearContextMenu->insertItem("Select All", this, SLOT(slotGearSelectAll()),Qt::CTRL + Qt::Key_A); _metaGearContextMenu->insertItem("Copy", this, SLOT(slotGearCopy()),Qt::CTRL + Qt::Key_C); _metaGearContextMenu->insertItem("Paste", this, SLOT(slotGearPaste()),Qt::CTRL + Qt::Key_V); _metaGearContextMenu->insertItem("Properties", this, SLOT(slotGearProperties())); _metaGearContextMenu->insertItem("About"); _metaGearContextMenu->insertSeparator(); _metaGearContextMenu->insertItem("Save MetaGear", this, SLOT(slotSaveMetaGear())); // plug context menu initialization _plugContextMenu = new Q3PopupMenu(this); _plugContextMenu->insertItem("expose", this, SLOT(slotPlugExpose()),0,EXPOSE); _plugContextMenu->insertItem("unexpose", this, SLOT(slotPlugUnexpose()),0,UNEXPOSE);}
开发者ID:foogywoo,项目名称:drone,代码行数:56,
示例21: switch//! [3]void Graph_GraphicsView::keyPressEvent(QKeyEvent *event){ switch (event->key()) { case Qt::Key_Plus:zoomIn();break; case Qt::Key_Minus:zoomOut();break; case Qt::Key_Space:mtim.turn();break; case Qt::Key_Enter:shuffle();break; default: QGraphicsView::keyPressEvent(event); }}
开发者ID:alex13sh,项目名称:DMatGraph,代码行数:11,
示例22: zoomInvoid HelpViewer::wheelEvent(QWheelEvent *e){ if (e->modifiers() == Qt::CTRL) { e->accept(); (e->delta() > 0) ? zoomIn() : zoomOut(); } else { e->ignore(); QTextBrowser::wheelEvent(e); }}
开发者ID:Mr-Kumar-Abhishek,项目名称:qt,代码行数:10,
示例23: EditorTableEditor::TableEditor(QWidget *parent): Editor(parent){ QVBoxLayout *layout = new QVBoxLayout(this); setLayout(layout); // toolbar _toolbar = new QWidget(this); layout->addWidget(_toolbar); _ui_toolbar = new Ui::TableEditorToolbar; _ui_toolbar->setupUi(_toolbar); _ui_toolbar->firstPageButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/actions/allLeft"))); _ui_toolbar->previousPageButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/actions/left"))); _ui_toolbar->nextPageButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/actions/right"))); _ui_toolbar->lastPageButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/actions/allRight"))); _ui_toolbar->refreshButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/actions/refresh"))); _ui_toolbar->addRowButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/general/add"))); _ui_toolbar->deleteRowButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/general/remove"))); _ui_toolbar->commitButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/actions/checked"))); _ui_toolbar->rollbackButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/actions/rollback"))); _ui_toolbar->dumpDataButton->setIcon(QIcon(IconLoader::getIconIdentifier(":/drawable/actions/export"))); _tableView = new QTableView(this); _tableModel = new QSqlTableModel(_tableView /* TODO database connection */); _tableView->setModel(_tableModel); layout->addWidget(_tableView); // connections connect(_ui_toolbar->commitButton, SIGNAL(clicked()), _tableModel, SLOT(submitAll())); connect(_ui_toolbar->rollbackButton, SIGNAL(clicked()), _tableModel, SLOT(revertAll())); connect(_ui_toolbar->addRowButton, SIGNAL(clicked()), this, SLOT(addRow())); connect(_ui_toolbar->deleteRowButton, SIGNAL(clicked()), this, SLOT(deleteRows())); connect(_ui_toolbar->refreshButton, SIGNAL(clicked()), _tableModel, SLOT(select())); connect(_ui_toolbar->toolButtonExportImage, SIGNAL(clicked()),_imageView, SLOT(exportImage())); connect(_ui_toolbar->toolButtonZoomIn, SIGNAL(clicked()),_imageView,SLOT(zoomIn())); connect(_ui_toolbar->toolButtonZoomOut, SIGNAL(clicked()),_imageView, SLOT(zoomOut())); connect(_ui_toolbar->toolButtonFitToScreen, SIGNAL(clicked()),_imageView, SLOT(fitToScreen())); connect(_ui_toolbar->toolButtonOriginalSize, SIGNAL(clicked()),_imageView, SLOT(resetToOriginalSize())); connect(_ui_toolbar->toolButtonBackground, SIGNAL(toggled()),_imageView, SLOT(setViewBackground())); connect(_ui_toolbar->toolButtonOutline, SIGNAL(toggled()),_imageView, SLOT(setViewOutline())); connect(_ui_toolbar->toolButtonPlayPause, SIGNAL(clicked()),this, SLOT(playToggled())); connect(_file, SIGNAL(imageSizeChanged()),this, SLOT(imageSizeUpdated())); connect(_file, SIGNAL(openFinished()),_imageView, SLOT(createScene())); connect(_file, SIGNAL(openFinished()),this, SLOT(updateToolButtons())); connect(_file, SIGNAL(aboutToReload()),_imageView, SLOT(reset())); connect(_file, SIGNAL(reloadFinished()),_imageView, SLOT(createScene())); connect(_file, SIGNAL(isPausedChanged()),this, SLOT(updatePauseAction())); connect(_imageView, SIGNAL(scaleFactorChanged()),this, SLOT(scaleFactorUpdate()));}
开发者ID:intelligide,项目名称:UnicornEdit,代码行数:55,
示例24: zoomInvoid FixtureMainTimingUI::wheelEvent(QWheelEvent* ev){ if(m_bCtrlPressed){ if(ev->delta() > 0){ emit zoomIn(); } else if (ev->delta() < 0){ emit zoomOut(); } }}
开发者ID:pgTech123,项目名称:Light-Controller,代码行数:11,
示例25: zoomOutvoid ImageViewerWidget::keyPressEvent(QKeyEvent *event){ if (event->modifiers().testFlag(Qt::ControlModifier)) { if ((event->key() == Qt::Key_Minus) || (event->key() == Qt::Key_ZoomOut)) { zoomOut(); } else if ((event->key() == Qt::Key_Plus) || (event->key() == Qt::Key_Equal) || (event->key() == Qt::Key_ZoomIn)) { zoomIn(); } } QScrollArea::keyPressEvent(event);}
开发者ID:vaibhavpandeyvpz,项目名称:apkstudio,代码行数:11,
示例26: SLOT void DockableRegularData1DWidget::contextMenuEvent(QContextMenuEvent* e) { Q3PopupMenu context_menu; context_menu.insertItem("ZoomToFit", this, SLOT(zoomToFit())); context_menu.insertItem("ZoomIn", this, SLOT(zoomIn())); context_menu.insertItem("ZoomOut", this, SLOT(zoomOut())); QPoint pos = e->reason() == QContextMenuEvent::Mouse ? e->globalPos() : mapToGlobal( QPoint(e->pos().x(), 0) ) + QPoint( width() / 2, height() / 2 ); context_menu.exec(pos); e->accept(); }
开发者ID:HeyJJ,项目名称:ball,代码行数:11,
示例27: zoomInvoid IR::bulbEnd(){ if(make == OLYMPUS) { zoomIn(10); } else { shutterNow(); }}
开发者ID:dummey,项目名称:TimelapsePlus-Firmware,代码行数:11,
示例28: zoomInvoid RenderingView::wheelEvent(QWheelEvent *event){ if ( event->delta() > 0 ) { zoomIn(); } else { zoomOut(); }}
开发者ID:bkchr,项目名称:Rockete,代码行数:11,
示例29: zoomInvoid MyGraphicsView::wheelEvent(QWheelEvent *event){ if(event->delta() >0) { emit zoomIn(event->pos()); } if(event->delta() <0) { emit zoomOut(event->pos()); }}
开发者ID:RISK46kaf,项目名称:Practise,代码行数:11,
示例30: SIGNALQAction* MenuCallback::addCustomAction(QString commandId, QString label, QString tooltip){ QAction* pAction = NULL; if (commandId == QString::fromAscii("zoomIn")) { pAction = menuStack_.top()->addAction(QIcon(), label, this, SIGNAL(zoomIn()), QKeySequence::ZoomIn); } else if (commandId == QString::fromAscii("zoomOut")) { pAction = menuStack_.top()->addAction(QIcon(), label, this, SIGNAL(zoomOut()), QKeySequence::ZoomOut); }#ifdef Q_OS_LINUX else if (commandId == QString::fromAscii("nextTab")) { pAction = menuStack_.top()->addAction(QIcon(), label, this, SLOT(actionInvoked()), QKeySequence(Qt::CTRL + Qt::Key_PageDown)); } else if (commandId == QString::fromAscii("previousTab")) { pAction = menuStack_.top()->addAction(QIcon(), label, this, SLOT(actionInvoked()), QKeySequence(Qt::CTRL + Qt::Key_PageUp)); }#endif if (pAction != NULL) { pAction->setData(commandId); pAction->setToolTip(tooltip); return pAction; } else { return NULL; }}
开发者ID:AndreMikulec,项目名称:rstudio,代码行数:54,
注:本文中的zoomIn函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ zoomOut函数代码示例 C++ zoomChanged函数代码示例 |