Commit a42d80d9 authored by Halla Rempt's avatar Halla Rempt
Browse files

Get rid of the tutorial

We didn't update it for 2.4...
parent 0119e1b2
install( FILES krita_first_start.kra DESTINATION ${DATA_INSTALL_DIR}/krita/images)
...@@ -294,10 +294,6 @@ KisView2::KisView2(KisDoc2 * doc, QWidget * parent) ...@@ -294,10 +294,6 @@ KisView2::KisView2(KisDoc2 * doc, QWidget * parent)
actionCollection()->addAction("createTemplate", m_d->createTemplate); actionCollection()->addAction("createTemplate", m_d->createTemplate);
connect(m_d->createTemplate, SIGNAL(triggered()), this, SLOT(slotCreateTemplate())); connect(m_d->createTemplate, SIGNAL(triggered()), this, SLOT(slotCreateTemplate()));
KAction *firstRun = new KAction( i18n( "Load Tutorial"), this);
actionCollection()->addAction("first_run", firstRun);
connect(firstRun, SIGNAL(triggered()), this, SLOT(slotFirstRun()));
m_d->mirrorCanvas = new KToggleAction(i18n("Mirror Image"), this); m_d->mirrorCanvas = new KToggleAction(i18n("Mirror Image"), this);
m_d->mirrorCanvas->setChecked(false); m_d->mirrorCanvas->setChecked(false);
actionCollection()->addAction("mirror_canvas", m_d->mirrorCanvas); actionCollection()->addAction("mirror_canvas", m_d->mirrorCanvas);
...@@ -1209,26 +1205,6 @@ void KisView2::enableControls() ...@@ -1209,26 +1205,6 @@ void KisView2::enableControls()
} }
} }
void KisView2::slotFirstRun()
{
QString fname = KisFactory2::componentData().dirs()->findResource("kis_images", "krita_first_start.kra");
if (!fname.isEmpty()) {
KoDocumentEntry entry = KoDocumentEntry(KoDocument::readNativeService());
QString errorMsg;
KoDocument* doc = entry.createDoc(&errorMsg);
if (!doc) return;
KoMainWindow *shell = new KoMainWindow(doc->componentData());
shell->show();
QObject::connect(doc, SIGNAL(sigProgress(int)), shell, SLOT(slotProgress(int)));
// for initDoc to fill in the recent docs list
// and for KoDocument::slotStarted
doc->addShell(shell);
doc->showStartUpWidget(shell, true);
doc->openUrl(fname);
}
}
void KisView2::showStatusBar(bool toggled) void KisView2::showStatusBar(bool toggled)
{ {
if (KoView::statusBar()) { if (KoView::statusBar()) {
......
...@@ -191,7 +191,6 @@ private slots: ...@@ -191,7 +191,6 @@ private slots:
void slotDocumentSaved(); void slotDocumentSaved();
void slotSaveIncremental(); void slotSaveIncremental();
void slotSaveIncrementalBackup(); void slotSaveIncrementalBackup();
void slotFirstRun();
void showStatusBar(bool toggled); void showStatusBar(bool toggled);
void showJustTheCanvas(bool toggled); void showJustTheCanvas(bool toggled);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment