Qt4/Qt5 neutral changes:

+ remove class DownloadDialog
+ remove class HelpView
+ remove class DlgTipOfTheDay
This commit is contained in:
wmayer
2016-12-12 14:35:52 +01:00
parent a34c441373
commit d420c154c0
12 changed files with 1 additions and 2668 deletions

View File

@@ -67,7 +67,6 @@
#include "MainWindow.h"
#include "Application.h"
#include "Assistant.h"
#include "DownloadDialog.h"
#include "DownloadManager.h"
#include "WaitCursor.h"
@@ -94,14 +93,12 @@
#include "SelectionView.h"
#include "MenuManager.h"
//#include "ToolBox.h"
#include "HelpView.h"
#include "ReportView.h"
#include "CombiView.h"
#include "PythonConsole.h"
#include "TaskView/TaskView.h"
#include "DAGView/DAGView.h"
#include "DlgTipOfTheDayImp.h"
#include "DlgUndoRedo.h"
#include "DlgOnlineHelpImp.h"
@@ -1280,24 +1277,6 @@ QPixmap MainWindow::splashImage() const
return splash_image;
}
void MainWindow::showTipOfTheDay(bool force)
{
// tip of the day?
ParameterGrp::handle
hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->
GetGroup("Preferences")->GetGroup("General");
const std::map<std::string,std::string>& config = App::Application::Config();
std::map<std::string, std::string>::const_iterator tp = config.find("HideTipOfTheDay");
bool tip = (tp == config.end());
tip = hGrp->GetBool("Tipoftheday", tip);
if (tip || force) {
Gui::Dialog::DlgTipOfTheDayImp dlg(instance);
dlg.exec();
}
}
/**
* Drops the event \a e and tries to open the files.
*/