Krita Source Code Documentation
Loading...
Searching...
No Matches
KoZoomToolWidget Class Reference

#include <KoZoomToolWidget.h>

+ Inheritance diagram for KoZoomToolWidget:

Public Member Functions

 KoZoomToolWidget (KoZoomTool *tool, QWidget *parent=0)
 
 ~KoZoomToolWidget () override
 

Private Slots

void changeZoomMode ()
 

Private Attributes

KoZoomToolm_tool
 

Detailed Description

Definition at line 15 of file KoZoomToolWidget.h.

Constructor & Destructor Documentation

◆ KoZoomToolWidget()

KoZoomToolWidget::KoZoomToolWidget ( KoZoomTool * tool,
QWidget * parent = 0 )
explicit

Definition at line 13 of file KoZoomToolWidget.cpp.

14 : QWidget(parent)
15 , m_tool(tool)
16{
17 setupUi(this);
18
19 zoomInButton->setIcon(koIcon("zoom-in"));
20 zoomInButton->setIconSize(QSize(22, 22));
21 zoomOutButton->setIcon(koIcon("zoom-out"));
22 zoomOutButton->setIconSize(QSize(22, 22));
23
24 connect(zoomInButton, SIGNAL(toggled(bool)), this, SLOT(changeZoomMode()));
25 connect(zoomOutButton, SIGNAL(toggled(bool)), this, SLOT(changeZoomMode()));
26
27 zoomInButton->click();
28}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
KoZoomTool * m_tool
#define koIcon(name)
Use these macros for icons without any issues.
Definition kis_icon.h:25

References changeZoomMode(), connect(), and koIcon.

◆ ~KoZoomToolWidget()

KoZoomToolWidget::~KoZoomToolWidget ( )
override

Definition at line 30 of file KoZoomToolWidget.cpp.

31{
32}

Member Function Documentation

◆ changeZoomMode

void KoZoomToolWidget::changeZoomMode ( )
privateslot

Definition at line 34 of file KoZoomToolWidget.cpp.

35{
36 m_tool->setZoomInMode(zoomInButton->isChecked());
37}
void setZoomInMode(bool zoomIn)

References m_tool, and KoZoomTool::setZoomInMode().

Member Data Documentation

◆ m_tool

KoZoomTool* KoZoomToolWidget::m_tool
private

Definition at line 25 of file KoZoomToolWidget.h.


The documentation for this class was generated from the following files: