Krita Source Code Documentation
Loading...
Searching...
No Matches
KoZoomMode.cpp File Reference
#include "KoZoomMode.h"
#include <QDebug>
#include <klocalizedstring.h>
#include <kconfiggroup.h>
#include <ksharedconfig.h>
#include <cmath>
#include "kis_assert.h"

Go to the source code of this file.

Functions

QDebug operator<< (QDebug dbg, const KoZoomMode::Mode &mode)
 

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const KoZoomMode::Mode & mode )

Definition at line 83 of file KoZoomMode.cpp.

84{
85 dbg.nospace() << "KoZoomMode::Mode(";
86
87 switch (mode) {
89 dbg << "ZOOM_CONSTANT";
90 break;
92 dbg << "ZOOM_PAGE";
93 break;
95 dbg << "ZOOM_WIDTH";
96 break;
98 dbg << "ZOOM_HEIGHT";
99 break;
100 default:
101 dbg << "UNKNOWN";
102 break;
103 }
104
105 dbg << ")";
106 return dbg.space();
107}
@ ZOOM_CONSTANT
zoom x %
Definition KoZoomMode.h:24
@ ZOOM_PAGE
zoom page
Definition KoZoomMode.h:25
@ ZOOM_WIDTH
zoom pagewidth
Definition KoZoomMode.h:26
@ ZOOM_HEIGHT
zoom pageheight
Definition KoZoomMode.h:27

References KoZoomMode::ZOOM_CONSTANT, KoZoomMode::ZOOM_HEIGHT, KoZoomMode::ZOOM_PAGE, and KoZoomMode::ZOOM_WIDTH.