Kstars
7#include "summaryfitsview.h"
8#include "QGraphicsOpacityEffect"
11SummaryFITSView::SummaryFITSView(
QWidget *parent): FITSView(parent, FITS_NORMAL, FITS_NONE)
13 processInfoWidget =
new QWidget(
this);
14 processInfoWidget->setVisible(m_showProcessInfo);
17 processInfoWidget->raise();
20void SummaryFITSView::createFloatingToolBar()
22 FITSView::createFloatingToolBar();
24 floatingToolBar->addSeparator();
25 toggleProcessInfoAction = floatingToolBar->addAction(
QIcon::fromTheme(
"document-properties"),
26 i18n(
"Show Capture Process Information"),
27 this, SLOT(toggleShowProcessInfo()));
28 toggleProcessInfoAction->setCheckable(
true);
31void SummaryFITSView::showProcessInfo(
bool show)
33 m_showProcessInfo =
show;
34 processInfoWidget->setVisible(
show);
35 if(toggleProcessInfoAction !=
nullptr)
36 toggleProcessInfoAction->setChecked(
show);
42 FITSView::resizeEvent(
event);
QString i18n(const char *text, const TYPE &arg...)
QIcon fromTheme(const QString &name)
virtual bool event(QEvent *e)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:53:01 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.