NavigatorView::NavigatorView(QObject* parent) : AbstractView(parent), m_blockSelectionChangedSignal(false), m_widget(new NavigatorWidget(this)), m_treeModel(new NavigatorTreeModel(this)) { Internal::NavigatorContext *navigatorContext = new Internal::NavigatorContext(m_widget.data()); Core::ICore::addContextObject(navigatorContext); m_widget->setTreeModel(m_treeModel.data()); connect(treeWidget()->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(changeSelection(QItemSelection,QItemSelection))); connect(m_widget.data(), SIGNAL(leftButtonClicked()), this, SLOT(leftButtonClicked())); connect(m_widget.data(), SIGNAL(rightButtonClicked()), this, SLOT(rightButtonClicked())); connect(m_widget.data(), SIGNAL(downButtonClicked()), this, SLOT(downButtonClicked())); connect(m_widget.data(), SIGNAL(upButtonClicked()), this, SLOT(upButtonClicked())); treeWidget()->setIndentation(treeWidget()->indentation() * 0.5); NameItemDelegate *idDelegate = new NameItemDelegate(this, m_treeModel.data()); IconCheckboxItemDelegate *showDelegate = new IconCheckboxItemDelegate(this, Utils::Icons::EYE_OPEN_TOOLBAR.pixmap(), Utils::Icons::EYE_CLOSED_TOOLBAR.pixmap(), m_treeModel.data()); IconCheckboxItemDelegate *exportDelegate = new IconCheckboxItemDelegate(this, Icons::EXPORT_CHECKED.pixmap(), Icons::EXPORT_UNCHECKED.pixmap(), m_treeModel.data()); #ifdef _LOCK_ITEMS_ IconCheckboxItemDelegate *lockDelegate = new IconCheckboxItemDelegate(this,":/qmldesigner/images/lock.png", ":/qmldesigner/images/hole.png",m_treeModel.data()); #endif treeWidget()->setItemDelegateForColumn(0,idDelegate); #ifdef _LOCK_ITEMS_ treeWidget()->setItemDelegateForColumn(1,lockDelegate); treeWidget()->setItemDelegateForColumn(2,showDelegate); #else treeWidget()->setItemDelegateForColumn(1,exportDelegate); treeWidget()->setItemDelegateForColumn(2,showDelegate); #endif }
NavigatorView::NavigatorView(QObject* parent) : AbstractView(parent), m_blockSelectionChangedSignal(false), m_widget(new NavigatorWidget(this)), m_treeModel(new NavigatorTreeModel(this)) { Internal::NavigatorContext *navigatorContext = new Internal::NavigatorContext(m_widget.data()); Core::ICore::addContextObject(navigatorContext); m_widget->setTreeModel(m_treeModel.data()); connect(treeWidget()->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(changeSelection(QItemSelection,QItemSelection))); connect(m_widget.data(), SIGNAL(leftButtonClicked()), this, SLOT(leftButtonClicked())); connect(m_widget.data(), SIGNAL(rightButtonClicked()), this, SLOT(rightButtonClicked())); connect(m_widget.data(), SIGNAL(downButtonClicked()), this, SLOT(downButtonClicked())); connect(m_widget.data(), SIGNAL(upButtonClicked()), this, SLOT(upButtonClicked())); treeWidget()->setIndentation(treeWidget()->indentation() * 0.5); NameItemDelegate *idDelegate = new NameItemDelegate(this, m_treeModel.data()); IconCheckboxItemDelegate *showDelegate = new IconCheckboxItemDelegate(this, Utils::ThemeHelper::themedIconPixmap(QLatin1String(":/navigator/icon/eye_open.png")), Utils::ThemeHelper::themedIconPixmap(QLatin1String(":/navigator/icon/eye_closed.png")), m_treeModel.data()); IconCheckboxItemDelegate *exportDelegate = new IconCheckboxItemDelegate(this, Utils::ThemeHelper::themedIconPixmap(QLatin1String(":/navigator/icon/export_checked.png")), Utils::ThemeHelper::themedIconPixmap(QLatin1String(":/navigator/icon/export_unchecked.png")), m_treeModel.data()); #ifdef _LOCK_ITEMS_ IconCheckboxItemDelegate *lockDelegate = new IconCheckboxItemDelegate(this,":/qmldesigner/images/lock.png", ":/qmldesigner/images/hole.png",m_treeModel.data()); #endif treeWidget()->setItemDelegateForColumn(0,idDelegate); #ifdef _LOCK_ITEMS_ treeWidget()->setItemDelegateForColumn(1,lockDelegate); treeWidget()->setItemDelegateForColumn(2,showDelegate); #else treeWidget()->setItemDelegateForColumn(1,exportDelegate); treeWidget()->setItemDelegateForColumn(2,showDelegate); #endif }
QList<QToolButton *> NavigatorWidget::createToolBarWidgets() { QList<QToolButton *> buttons; buttons << new QToolButton(); buttons.last()->setIcon(QIcon(":/navigator/icon/arrowleft.png")); buttons.last()->setToolTip(tr("Become first sibling of parent (CTRL + Left)")); buttons.last()->setShortcut(QKeySequence(Qt::Key_Left | Qt::CTRL)); connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(leftButtonClicked())); buttons << new QToolButton(); buttons.last()->setIcon(QIcon(":/navigator/icon/arrowright.png")); buttons.last()->setToolTip(tr("Become child of first sibling (CTRL + Right)")); buttons.last()->setShortcut(QKeySequence(Qt::Key_Right | Qt::CTRL)); connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(rightButtonClicked())); buttons << new QToolButton(); buttons.last()->setIcon(QIcon(":/navigator/icon/arrowdown.png")); buttons.last()->setToolTip(tr("Move down (CTRL + Down)")); buttons.last()->setShortcut(QKeySequence(Qt::Key_Down | Qt::CTRL)); connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(downButtonClicked())); buttons << new QToolButton(); buttons.last()->setIcon(QIcon(":/navigator/icon/arrowup.png")); buttons.last()->setToolTip(tr("Move up (CTRL + Up)")); buttons.last()->setShortcut(QKeySequence(Qt::Key_Up | Qt::CTRL)); connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(upButtonClicked())); return buttons; }
QList<QToolButton *> NavigatorWidget::createToolBarWidgets() { QList<QToolButton *> buttons; buttons.append(new QToolButton()); buttons.last()->setIcon(Icons::ARROW_LEFT.icon()); buttons.last()->setToolTip(tr("Become last sibling of parent (CTRL + Left).")); buttons.last()->setShortcut(QKeySequence(Qt::Key_Left | Qt::CTRL)); connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(leftButtonClicked())); buttons.append(new QToolButton()); buttons.last()->setIcon(Icons::ARROW_RIGHT.icon()); buttons.last()->setToolTip(tr("Become child of last sibling (CTRL + Right).")); buttons.last()->setShortcut(QKeySequence(Qt::Key_Right | Qt::CTRL)); connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(rightButtonClicked())); buttons.append(new QToolButton()); buttons.last()->setIcon(Icons::ARROW_DOWN.icon()); buttons.last()->setToolTip(tr("Move down (CTRL + Down).")); buttons.last()->setShortcut(QKeySequence(Qt::Key_Down | Qt::CTRL)); connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(downButtonClicked())); buttons.append(new QToolButton()); buttons.last()->setIcon(Icons::ARROW_UP.icon()); buttons.last()->setToolTip(tr("Move up (CTRL + Up).")); buttons.last()->setShortcut(QKeySequence(Qt::Key_Up | Qt::CTRL)); connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(upButtonClicked())); return buttons; }
void GraphicsDImgView::mousePressEvent(QMouseEvent* e) { QGraphicsView::mousePressEvent(e); d->mousePressPos = QPoint(); d->movingInProgress = false; if (!acceptsMouseClick(e)) { return; } if (e->button() == Qt::LeftButton) { emit leftButtonClicked(); } if (e->button() == Qt::LeftButton || e->button() == Qt::MidButton) { d->mousePressPos = e->pos(); if (!qApp->style()->styleHint(QStyle::SH_ItemView_ActivateItemOnSingleClick) || e->button() == Qt::MidButton) { startPanning(e->pos()); } return; } if (e->button() == Qt::RightButton) { emit rightButtonClicked(); } }
KstCurveDifferentiateI::KstCurveDifferentiateI(QWidget* parent, const char* name, bool modal, WFlags fl) : KstCurveDifferentiate(parent, name, modal, fl) { availableListBox->clear(); selectedListBox->clear(); availableListBox->insertItem(i18n("Line Color")); availableListBox->insertItem(i18n("Point Style")); availableListBox->insertItem(i18n("Line Style")); availableListBox->insertItem(i18n("Line Width")); connect(Cancel_2, SIGNAL(clicked()), this, SLOT(close())); connect(OK_2, SIGNAL(clicked()), this, SLOT(apply())); // more connections to emulate kactionselector behaviour connect(leftButton, SIGNAL(clicked()), this, SLOT(leftButtonClicked())); connect(rightButton, SIGNAL(clicked()), this, SLOT(rightButtonClicked())); connect(upButton, SIGNAL(clicked()), this, SLOT(upButtonClicked())); connect(downButton, SIGNAL(clicked()), this, SLOT(downButtonClicked())); connect(availableListBox, SIGNAL(highlighted(int)), this, SLOT(updateButtons())); connect(selectedListBox, SIGNAL(highlighted(int)), this, SLOT(updateButtons())); maxLineWidth->setMaxValue(KSTLINEWIDTH_MAX); maxLineWidth->setMinValue(1); _radioButtonRepeatPlot->setChecked(true); _radioButtonApplyAllWindows->setChecked(true); loadProperties(); setOptions(); updateCurveDifferentiate(); }
KstMonochromeDialogI::KstMonochromeDialogI(QWidget* parent, const char* name, bool modal, WFlags fl) : KstMonochromeDialog(parent, name, modal, fl) { availableListBox->clear(); selectedListBox->clear(); availableListBox->insertItem(i18n("Point Style")); availableListBox->insertItem(i18n("Line Style")); availableListBox->insertItem(i18n("Line Width")); connect(_Cancel, SIGNAL(clicked()), this, SLOT(accept())); connect(enhanceReadability, SIGNAL(clicked()), this, SLOT(updateButtons())); // more connections to emulate kactionselector behaviour connect(leftButton, SIGNAL(clicked()), this, SLOT(leftButtonClicked())); connect(rightButton, SIGNAL(clicked()), this, SLOT(rightButtonClicked())); connect(upButton, SIGNAL(clicked()), this, SLOT(upButtonClicked())); connect(downButton, SIGNAL(clicked()), this, SLOT(downButtonClicked())); connect(availableListBox, SIGNAL(highlighted(int)), this, SLOT(updateButtons())); connect(selectedListBox, SIGNAL(highlighted(int)), this, SLOT(updateButtons())); maxLineWidth->setMaxValue(KSTLINESTYLE_MAXTYPE); maxLineWidth->setMinValue(1); updateMonochromeDialog(); }
NavigatorView::NavigatorView(QObject* parent) : QmlModelView(parent), m_blockSelectionChangedSignal(false), m_widget(new NavigatorWidget(this)), m_treeModel(new NavigatorTreeModel(this)) { m_widget->setTreeModel(m_treeModel.data()); connect(treeWidget()->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(changeSelection(QItemSelection,QItemSelection))); connect(m_widget.data(), SIGNAL(leftButtonClicked()), this, SLOT(leftButtonClicked())); connect(m_widget.data(), SIGNAL(rightButtonClicked()), this, SLOT(rightButtonClicked())); connect(m_widget.data(), SIGNAL(downButtonClicked()), this, SLOT(downButtonClicked())); connect(m_widget.data(), SIGNAL(upButtonClicked()), this, SLOT(upButtonClicked())); treeWidget()->setIndentation(treeWidget()->indentation() * 0.5); NameItemDelegate *idDelegate = new NameItemDelegate(this,m_treeModel.data()); IconCheckboxItemDelegate *showDelegate = new IconCheckboxItemDelegate(this,":/qmldesigner/images/eye_open.png", ":/qmldesigner/images/placeholder.png",m_treeModel.data()); #ifdef _LOCK_ITEMS_ IconCheckboxItemDelegate *lockDelegate = new IconCheckboxItemDelegate(this,":/qmldesigner/images/lock.png", ":/qmldesigner/images/hole.png",m_treeModel.data()); #endif treeWidget()->setItemDelegateForColumn(0,idDelegate); #ifdef _LOCK_ITEMS_ treeWidget()->setItemDelegateForColumn(1,lockDelegate); treeWidget()->setItemDelegateForColumn(2,showDelegate); #else treeWidget()->setItemDelegateForColumn(1,showDelegate); #endif }
void FancyLineEdit::iconClicked() { IconButton *button = qobject_cast<IconButton *>(sender()); int index = -1; for (int i = 0; i < 2; ++i) if (d->m_iconbutton[i] == button) index = i; if (index == -1) return; if (d->m_menu[index]) { execMenuAtWidget(d->m_menu[index], button); } else { emit buttonClicked((Side)index); if (index == Left) emit leftButtonClicked(); else if (index == Right) emit rightButtonClicked(); } }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void SearchLineEdit::iconClicked() { IconButton* button = qobject_cast<IconButton*>(sender()); int index = -1; for (int i = 0; i < 2; ++i) if (d->m_IconButtons[i] == button) { index = i; } if (index == -1) { return; } if (d->m_ButtonMenus[index]) { execMenuAtWidget(d->m_ButtonMenus[index], button); } else { emit buttonClicked((Side)index); if (index == Left) { emit leftButtonClicked(); } else if (index == Right) { emit rightButtonClicked(); } } }
void KCheckGmailTray::slotActivated(QSystemTrayIcon::ActivationReason reason) { if (reason == QSystemTrayIcon::Trigger) emit leftButtonClicked(); }
/** Default constructor */ MainWindow::MainWindow() : QWidget() { /** constructor() that has in input file for scores */ ifstream fin; fin.open("scores.txt"); if(fin.fail()) { cout << "Could not find the scores file" << endl; } else { string temp; int temp2; getline(fin,temp,'|'); fin >> temp2; while(fin.good()) { scorenames.push_back(temp); scores.push_back(temp2); getline(fin,temp,'|'); fin >> temp2; } } /** Set the Pixmaps */ ez=new QPixmap("ezreal.png"); *ez=ez->scaled(75,75,Qt::KeepAspectRatioByExpanding); melee=new QPixmap("meleeminion.png"); *melee=melee->scaled(50,50,Qt::KeepAspectRatioByExpanding); caster=new QPixmap("casterminion.png"); *caster=caster->scaled(45,45,Qt::KeepAspectRatioByExpanding); siege=new QPixmap("siegeminion.png"); *siege=siege->scaled(65,65,Qt::KeepAspectRatioByExpanding); basic=new QPixmap("basicattack.gif"); *basic=basic->scaled(10,10,Qt::KeepAspectRatioByExpanding); mystic=new QPixmap("basicattack.gif"); *mystic=mystic->scaled(30,30,Qt::KeepAspectRatioByExpanding); trueshot=new QPixmap("trueshot.png"); *trueshot=trueshot->scaled(75,75,Qt::KeepAspectRatioByExpanding); heal=new QPixmap("heal.png"); *heal=heal->scaled(50,50,Qt::KeepAspectRatioByExpanding); clarity=new QPixmap("clarity.png"); *clarity=clarity->scaled(50,50,Qt::KeepAspectRatioByExpanding); ignite=new QPixmap("ignite.png"); *ignite=ignite->scaled(50,50,Qt::KeepAspectRatioByExpanding); energy=new QPixmap("energybolt.gif"); *energy=energy->scaled(50,50,Qt::KeepAspectRatioByExpanding); cannon=new QPixmap("cannonshot.png"); *cannon=cannon->scaled(55,55,Qt::KeepAspectRatioByExpanding); /** color is the default color set for spacers and background of widgets*/ color.setRgb(240,240,240,255); /** MainWidget which holds everything */ mainwidget= new QWidget; mainwidget->setFixedSize(1200,800); /** Main Layout for MainWindow */ mainLayout = new QVBoxLayout; mainwidget->setLayout(mainLayout); /** TITLE above row1*/ row0 = new QHBoxLayout; /** IconObject used to display QPixmap */ hold_spacer0 = new IconObject; /** Used to hold a space */ spacer0 = new QPixmap(100,64); spacer0->fill(color); /** IconObject used to display QPixmap */ hold_title = new IconObject; /** Ability display icon */ title = new QPixmap("title.png"); /** IconObject used to display QPixmap */ hold_spacer01 = new IconObject; /** Used to hold a space */ spacer01 = new QPixmap(100,64); spacer01->fill(color); // set pixmaps hold_spacer0->setPixmap(*spacer0); hold_title->setPixmap(title->scaled(700,40,Qt::KeepAspectRatioByExpanding)); hold_spacer0->setPixmap(*spacer01); //add to layout row0 row0->addWidget(hold_spacer0); row0->addWidget(hold_title); row0->addWidget(hold_spacer01); mainLayout->addLayout(row0); /** Horizontal box for row 1*/ row1= new QHBoxLayout; /** Button which initiates/restarts game*/ start= new QPushButton("Start"); /** Button which pauses/continues game*/ pause = new QPushButton("Pause"); /** quits the game*/ quit = new QPushButton("Quit"); /** Score display*/ name = new QTextEdit("Name"); name->setMaximumHeight(30); name->setMaximumWidth(200); /** level display*/ level = new QLabel("LEVEL: 00"); /** score display*/ score = new QLabel("SCORE: 00"); row1->addWidget(start); row1->addWidget(pause); row1->addWidget(quit); row1->addWidget(name); row1->addWidget(level); row1->addWidget(score); mainLayout->addLayout(row1); /** Horizontal box for row 2*/ row2 = new QHBoxLayout; /** Scene which holds monsters, player and powerups*/ scene = new QGraphicsScene; /** View which holds gameplay*/ view = new GameWindow(scene); row2->addWidget(view); mainLayout->addLayout(row2); /** Horizontal box for row 3*/ row3 = new QHBoxLayout; //left /** IconObject used to display QPixmap */ hold_basicattackicon = new IconObject; /** Ability display icon */ basicattackicon = new QPixmap("basicattack.gif"); /** IconObject used to display QPixmap */ hold_mysticshoticon = new IconObject; /** Ability display icon */ mysticshoticon = new QPixmap("basicattack.gif"); //mysticshoticon->scaledToHeight(64,Qt::FastTransformation); /** IconObject used to display QPixmap */ hold_trueshoticon = new IconObject; /** Ability display icon */ trueshoticon = new QPixmap("trueshot.png"); /** IconObject used to display QPixmap */ hold_spacer1 = new IconObject; /** Used to hold a space */ spacer1 = new QPixmap(400,64); spacer1->fill(color); //midleft /** IconObject used to display QPixmap */ hold_heart = new IconObject; /** Heart Icon */ heart = new QPixmap("heart.gif"); /** Health display */ health = new QLabel("200"); health->setMaximumHeight(25); /** IconObject used to display QPixmap */ hold_spacer2 = new IconObject; /** Used to hold a space */ spacer2 = new QPixmap(64,64); spacer2->fill(color); //midright /** IconObject used to display QPixmap */ hold_potion = new IconObject; /** Mana Icon */ potion = new QPixmap("mana.gif"); /** Mana display */ mana= new QLabel("50"); mana->setMaximumHeight(25); /*Add the Pixmaps to the IconObjects*/ hold_basicattackicon->setPixmap(basicattackicon->scaledToHeight(10)); hold_mysticshoticon->setPixmap(mysticshoticon->scaledToHeight(20)); hold_trueshoticon->setPixmap(trueshoticon->scaled(40,60,Qt::KeepAspectRatioByExpanding)); hold_spacer1->setPixmap(*spacer1); hold_heart->setPixmap(*heart); hold_spacer2->setPixmap(*spacer2); hold_potion->setPixmap(*potion); /* Add IconObjects to row3 */ row3->addWidget(hold_basicattackicon); row3->addWidget(hold_mysticshoticon); row3->addWidget(hold_trueshoticon); row3->addWidget(hold_spacer1); row3->addWidget(hold_heart); row3->addWidget(health); row3->addWidget(hold_spacer2); row3->addWidget(hold_potion); row3->addWidget(mana); /* Add layout to main widget*/ mainLayout->addLayout(row3); // set player //objects.push_back( //set bool variables trueshotfiring = false; inGame = false; gamePaused = false; playerAlive = false; up = false; down = false; left = false; right = false; grabbedignite=false; lostgame=false; //set counters /** Level identifies which level the game is at */ levelff=1; /** Leftclickcounter determines how many times left click is pressed */ leftclickcounter=0; /** Leftclickholdcounter determines how long left click is pressed */ leftclickholdcounter=0; /** Spawn counter for a meleeminoin */ spawnmelee=0; /** Spawn counter for a Siegeminion*/ spawnsiege=0; /** Spawn counter for a Casterminion*/ spawncaster=0; /** Ez can not be hurt immediately at next clock *giving the player time to move out of the way*/ ezhurt=0; /** Points scored*/ points=0; /** Icon spawning at 200*/ iconspawn=0; // set timer timer = new QTimer(this);// timer->start(val) later on in show() //connections connect(start,SIGNAL(clicked()),this,SLOT(clickedStart())); connect(pause,SIGNAL(clicked()),this,SLOT(clickedPause())); connect(view,SIGNAL(leftButtonClicked()),this,SLOT(leftClick())); connect(view,SIGNAL(rightButtonClicked()),this,SLOT(rightClick())); connect(view,SIGNAL(leftButtonHoldStart()),this,SLOT(leftHoldstart())); connect(view,SIGNAL(leftButtonHoldCancel()),this,SLOT(leftHoldcancel())); connect(view,SIGNAL(uparrow()),this,SLOT(moveup())); connect(view,SIGNAL(downarrow()),this,SLOT(movedown())); connect(view,SIGNAL(leftarrow()),this,SLOT(moveleft())); connect(view,SIGNAL(rightarrow()),this,SLOT(moveright())); connect(timer,SIGNAL(timeout()),this,SLOT(handleTimer())); connect(quit,SIGNAL(clicked()),this,SLOT(clickedQuit())); }
LightTableView::LightTableView(QWidget* const parent) : QFrame(parent), d(new Private) { setAttribute(Qt::WA_DeleteOnClose); setFrameStyle(QFrame::NoFrame); setLineWidth(0); d->grid = new QGridLayout(); setLayout(d->grid); d->leftFrame = new QLabel(this); d->leftPreview = new LightTablePreview(this); QVBoxLayout* const llay = new QVBoxLayout(d->leftFrame); llay->addWidget(d->leftPreview); llay->setContentsMargins(3, 3, 3, 3); llay->setSpacing(0); d->rightFrame = new QLabel(this); d->rightPreview = new LightTablePreview(this); QVBoxLayout* const rlay = new QVBoxLayout(d->rightFrame); rlay->addWidget(d->rightPreview); rlay->setContentsMargins(3, 3, 3, 3); rlay->setSpacing(0); d->grid->addWidget(d->leftFrame, 0, 0, 1, 1); d->grid->addWidget(d->rightFrame, 0, 1, 1, 1); d->grid->setColumnStretch(0, 10); d->grid->setColumnStretch(1, 10); d->grid->setRowStretch(0, 10); // Left panel connections ------------------------------------------------ connect(d->leftPreview, SIGNAL(signalPopupTagsView()), this, SIGNAL(signalLeftPopupTagsView())); connect(d->leftPreview->layout(), SIGNAL(zoomFactorChanged(double)), this, SLOT(slotLeftZoomFactorChanged(double))); connect(d->leftPreview, SIGNAL(contentsMoving(int,int)), this, SLOT(slotLeftContentsMoved(int,int))); connect(d->leftPreview, SIGNAL(signalSlideShowCurrent()), this, SIGNAL(signalLeftSlideShowCurrent())); connect(d->leftPreview, SIGNAL(signalDroppedItems(ItemInfoList)), this, SIGNAL(signalLeftDroppedItems(ItemInfoList))); connect(d->leftPreview, SIGNAL(signalPreviewLoaded(bool)), this, SLOT(slotLeftPreviewLoaded(bool))); connect(d->leftPreview, SIGNAL(leftButtonClicked()), this, SIGNAL(signalLeftPanelLeftButtonClicked())); connect(d->leftPreview, SIGNAL(signalDeleteItem()), this, SLOT(slotDeleteLeftItem())); // Right panel connections ------------------------------------------------ connect(d->rightPreview, SIGNAL(signalPopupTagsView()), this, SIGNAL(signalRightPopupTagsView())); connect(d->rightPreview->layout(), SIGNAL(zoomFactorChanged(double)), this, SLOT(slotRightZoomFactorChanged(double))); connect(d->rightPreview, SIGNAL(contentsMoving(int,int)), this, SLOT(slotRightContentsMoved(int,int))); connect(d->rightPreview, SIGNAL(signalDroppedItems(ItemInfoList)), this, SIGNAL(signalRightDroppedItems(ItemInfoList))); connect(d->rightPreview, SIGNAL(signalSlideShowCurrent()), this, SIGNAL(signalRightSlideShowCurrent())); connect(d->rightPreview, SIGNAL(signalPreviewLoaded(bool)), this, SLOT(slotRightPreviewLoaded(bool))); connect(d->rightPreview, SIGNAL(leftButtonClicked()), this, SIGNAL(signalRightPanelLeftButtonClicked())); connect(d->rightPreview, SIGNAL(signalDeleteItem()), this, SLOT(slotDeleteRightItem())); }