~ubuntu-branches/ubuntu/wily/tora/wily-proposed

« back to all changes in this revision

Viewing changes to src/totemplate.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Meskes
  • Date: 2008-03-26 09:55:07 UTC
  • mfrom: (1.2.6 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080326095507-sm1ieybfn8iomub1
Tags: 1.3.23-1
* New upstream version
* Moved config.* handling from clean target to configure target.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#include "totemplate.h"
47
47
#include "totool.h"
48
48
 
49
 
#ifdef TO_KDE
50
 
#include <kfiledialog.h>
51
 
#endif
52
 
 
53
49
#include <qfiledialog.h>
54
50
#include <qfileinfo.h>
55
51
#include <qheader.h>
458
454
        }
459
455
        else if (Dock->isHidden())
460
456
        {
461
 
#ifdef TO_KDE
462
 
            toAttachDock(Dock, Window, QMainWindow::Left);
463
 
#else
464
 
 
465
457
            Dock->show();
466
 
#endif
467
 
 
468
458
            Window->showResult(true);
469
459
        }
470
460
        else
471
461
        {
472
 
#ifdef TO_KDE
473
 
            toAttachDock(Dock, Window, QMainWindow::Minimized);
474
 
#else
475
 
 
476
462
            Dock->hide();
477
 
#endif
478
 
 
479
463
            Window->showResult(false);
480
464
        }
481
465
    }
588
572
                i++)
589
573
            (*i)->insertItems(List, Toolbar);
590
574
 
591
 
    Toolbar->setStretchableWidget(new QLabel(Toolbar, TO_KDE_TOOLBAR_WIDGET));
 
575
    Toolbar->setStretchableWidget(new QLabel(Toolbar, TO_TOOLBAR_WIDGET_NAME));
592
576
 
593
577
    WidgetExtra = NULL;
594
578
    setWidget(NULL);
616
600
 
617
601
    if (show)
618
602
    {
619
 
#ifdef TO_KDE
620
 
        toAttachDock((TODock *)Result, Frame, QMainWindow::Bottom);
621
 
#else
622
 
 
623
603
        Result->show();
624
 
#endif
625
 
 
626
604
    }
627
605
    else
628
606
    {
629
 
#ifdef TO_KDE
630
 
        toAttachDock((TODock *)Result, Frame, QMainWindow::Minimized);
631
 
#else
632
 
 
633
607
        Result->hide();
634
 
#endif
635
 
 
636
608
    }
637
609
}
638
610