Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/KSMainWindow.cpp
Show First 20 Lines • Show All 383 Lines • ▼ Show 20 Line(s) | 383 | showInlineMessage(i18n("The shared image link (<a href=\"%1\">%1</a>) has been copied to the clipboard.", message), | |||
---|---|---|---|---|---|
384 | KMessageWidget::Positive, MessageDuration::Persistent); | 384 | KMessageWidget::Positive, MessageDuration::Persistent); | ||
385 | QApplication::clipboard()->setText(message); | 385 | QApplication::clipboard()->setText(message); | ||
386 | } | 386 | } | ||
387 | } | 387 | } | ||
388 | } | 388 | } | ||
389 | 389 | | |||
390 | void KSMainWindow::sendToClipboard() | 390 | void KSMainWindow::sendToClipboard() | ||
391 | { | 391 | { | ||
392 | ExportManager::instance()->doCopyToClipboard(); | 392 | bool notify = false; | ||
393 | ExportManager::instance()->doCopyToClipboard(notify); | ||||
393 | 394 | | |||
394 | SpectacleConfig::instance()->quitAfterSaveOrCopyChecked() | 395 | SpectacleConfig::instance()->quitAfterSaveOrCopyChecked() | ||
395 | ? quit() | 396 | ? quit() | ||
396 | : showInlineMessage(i18n("The screenshot has been copied to the clipboard."), | 397 | : showInlineMessage(i18n("The screenshot has been copied to the clipboard."), | ||
397 | KMessageWidget::Information); | 398 | KMessageWidget::Information); | ||
398 | } | 399 | } | ||
399 | 400 | | |||
400 | void KSMainWindow::showPreferencesDialog() | 401 | void KSMainWindow::showPreferencesDialog() | ||
Show All 33 Lines |