Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/KSWidget.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
49 | mImageWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | 49 | mImageWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | ||
50 | connect(mImageWidget, &KSImageWidget::dragInitiated, this, &KSWidget::dragInitiated); | 50 | connect(mImageWidget, &KSImageWidget::dragInitiated, this, &KSWidget::dragInitiated); | ||
51 | 51 | | |||
52 | // the capture mode options first | 52 | // the capture mode options first | ||
53 | 53 | | |||
54 | mCaptureModeLabel = new QLabel(i18n("<b>Capture Mode</b>"), this); | 54 | mCaptureModeLabel = new QLabel(i18n("<b>Capture Mode</b>"), this); | ||
55 | 55 | | |||
56 | mCaptureArea = new QComboBox(this); | 56 | mCaptureArea = new QComboBox(this); | ||
57 | QString fullScreenLabel = QApplication::screens().length() == 1 | ||||
mdrost: Everywhere else it is `QApplication::screens().count()`. `length()` looks like we are summing… | |||||
ngraham: Fixed in befd99a0147f0a1b06012e768e531b6dd6613742 | |||||
58 | ? i18n("Full Screen") | ||||
59 | : i18n("Full Screen (All Monitors)"); | ||||
60 | | ||||
57 | if (supportedModes.contains(ImageGrabber::FullScreen)) | 61 | if (supportedModes.contains(ImageGrabber::FullScreen)) | ||
58 | mCaptureArea->insertItem(1, i18n("Full Screen (All Monitors)"), ImageGrabber::FullScreen); | 62 | mCaptureArea->insertItem(1, fullScreenLabel, ImageGrabber::FullScreen); | ||
59 | if (supportedModes.contains(ImageGrabber::CurrentScreen)) | 63 | if (supportedModes.contains(ImageGrabber::CurrentScreen)) | ||
60 | mCaptureArea->insertItem(2, i18n("Current Screen"), ImageGrabber::CurrentScreen); | 64 | mCaptureArea->insertItem(2, i18n("Current Screen"), ImageGrabber::CurrentScreen); | ||
61 | if (supportedModes.contains(ImageGrabber::ActiveWindow)) | 65 | if (supportedModes.contains(ImageGrabber::ActiveWindow)) | ||
62 | mCaptureArea->insertItem(3, i18n("Active Window"), ImageGrabber::ActiveWindow); | 66 | mCaptureArea->insertItem(3, i18n("Active Window"), ImageGrabber::ActiveWindow); | ||
63 | if (supportedModes.contains(ImageGrabber::WindowUnderCursor)) | 67 | if (supportedModes.contains(ImageGrabber::WindowUnderCursor)) | ||
64 | mCaptureArea->insertItem(4, i18n("Window Under Cursor"), ImageGrabber::WindowUnderCursor); | 68 | mCaptureArea->insertItem(4, i18n("Window Under Cursor"), ImageGrabber::WindowUnderCursor); | ||
65 | if (supportedModes.contains(ImageGrabber::RectangularRegion)) | 69 | if (supportedModes.contains(ImageGrabber::RectangularRegion)) | ||
66 | mCaptureArea->insertItem(5, i18n("Rectangular Region"), ImageGrabber::RectangularRegion); | 70 | mCaptureArea->insertItem(5, i18n("Rectangular Region"), ImageGrabber::RectangularRegion); | ||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |
Everywhere else it is QApplication::screens().count(). length() looks like we are summing lengths of all screens :P