• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Stellarium / stellarium / 6685397774

29 Oct 2023 07:37PM UTC coverage: 11.735% (-0.002%) from 11.737%
6685397774

push

github

10110111
Deduplicate title bar implementation

131 of 131 new or added lines in 56 files covered. (100.0%)

14842 of 126472 relevant lines covered (11.74%)

21617.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/gui/ConfigureScreenshotsDialog.cpp
1
/*
2
 * Stellarium
3
 * Copyright (C) 2022 Alexander Wolf
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program; if not, write to the Free Software
16
 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335, USA.
17
*/
18

19
#include "ConfigureScreenshotsDialog.hpp"
20
#include "ui_configureScreenshotsDialog.h"
21

22
#include "Dialog.hpp"
23
#include "StelApp.hpp"
24
#include "StelTranslator.hpp"
25
#include "StelObjectMgr.hpp"
26

27
ConfigureScreenshotsDialog::ConfigureScreenshotsDialog() : StelDialog("ConfigureScreenshotsDialog")
×
28
{
29
        ui = new Ui_configureScreenshotsDialogForm;
×
30
}
×
31

32
ConfigureScreenshotsDialog::~ConfigureScreenshotsDialog()
×
33
{
34
        delete ui;
×
35
        ui=Q_NULLPTR;
×
36
}
×
37

38
void ConfigureScreenshotsDialog::retranslate()
×
39
{
40
        if (dialog)
×
41
        {
42
                ui->retranslateUi(dialog);
×
43
        }
44
}
×
45

46
void ConfigureScreenshotsDialog::createDialogContent()
×
47
{
48
        ui->setupUi(dialog);
×
49

50
        //Signals and slots
51
        connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(retranslate()));
×
52
        connect(ui->titleBar, &TitleBar::closeClicked, this, &StelDialog::close);
×
53
        connect(ui->titleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMovedTo(QPoint)));
×
54

55
        connectBoolProperty(ui->useDateTimeFileMask, "MainView.flagScreenshotDateFileName");
×
56
        connectStringProperty(ui->maskLineEdit, "MainView.screenShotFileMask");
×
57
}
×
58

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc