mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 08:51:24 +00:00
remove ugly hacks around kate part probs
svn path=/trunk/kdebase/kate/app/kwritemain.cpp; revision=269803
This commit is contained in:
parent
1ca6b94fbf
commit
7c8cd7261c
|
@ -140,14 +140,6 @@ KWrite::~KWrite()
|
|||
|
||||
void KWrite::setupActions()
|
||||
{
|
||||
KAction *a;
|
||||
|
||||
if (Kate::document (view()->document()))
|
||||
{
|
||||
m_view->actionCollection()->remove (m_view->actionCollection()->action( "set_confdlg" ));
|
||||
KStdAction::preferences(this, SLOT(slotConfigure()), actionCollection(), "settings_configure");
|
||||
}
|
||||
|
||||
KStdAction::close( this, SLOT(slotFlush()), actionCollection(), "file_close" )->setWhatsThis(i18n("Use this to close the current document"));
|
||||
|
||||
// setup File menu
|
||||
|
@ -159,7 +151,7 @@ void KWrite::setupActions()
|
|||
actionCollection());
|
||||
m_recentFiles->setWhatsThis(i18n("This lists files which you have opened recently, and allows you to easily open them again."));
|
||||
|
||||
a=new KAction(i18n("&New Window"), "window_new", 0, this, SLOT(newView()),
|
||||
KAction *a=new KAction(i18n("&New Window"), "window_new", 0, this, SLOT(newView()),
|
||||
actionCollection(), "view_new_view");
|
||||
a->setWhatsThis(i18n("Create another view containing the current document"));
|
||||
|
||||
|
@ -190,18 +182,6 @@ void KWrite::setupStatusBar()
|
|||
statusBar()->insertItem("", KWRITE_ID_GEN);
|
||||
}
|
||||
|
||||
// if we use KatePart, sync config after configDialog is closed
|
||||
void KWrite::slotConfigure()
|
||||
{
|
||||
Kate::Document *doc = Kate::document (view()->document());
|
||||
|
||||
if (doc)
|
||||
{
|
||||
doc->configDialog ();
|
||||
writeConfig ();
|
||||
}
|
||||
}
|
||||
|
||||
// load on url
|
||||
void KWrite::loadURL(const KURL &url)
|
||||
{
|
||||
|
|
|
@ -66,7 +66,6 @@ class KWrite : public KParts::MainWindow
|
|||
void editKeys();
|
||||
void editToolbars();
|
||||
void changeEditor();
|
||||
void slotConfigure ();
|
||||
|
||||
public slots:
|
||||
void printNow();
|
||||
|
|
Loading…
Reference in a new issue