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

« back to all changes in this revision

Viewing changes to src/toplsqleditor.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Meskes
  • Date: 2009-09-11 12:37:52 UTC
  • mfrom: (1.2.8 upstream) (3.3.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090911123752-qhu322xlclo2hpqu
Tags: 2.1.0-1
* New upstream version, the rebuild closes: #540046.
* Bumped Standards-Version to 3.8.3, no changes needed.
* New project homepage.
* Removed no longer needed 01_missing_includes.dpatch.
* Removed no longer used dh_desktop call.
* Added README.source file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * 
8
8
 * Portions Copyright (C) 2000-2001 Underscore AB
9
9
 * Portions Copyright (C) 2003-2005 Quest Software, Inc.
10
 
 * Portions Copyright (C) 2004-2008 Numerous Other Contributors
 
10
 * Portions Copyright (C) 2004-2009 Numerous Other Contributors
11
11
 * 
12
12
 * This program is free software; you can redistribute it and/or
13
13
 * modify it under the terms of the GNU General Public License
420
420
    toBusy busy;
421
421
 
422
422
//     qDebug() << "toDebug::changePackage 1";
423
 
    QTreeWidgetItem *item = static_cast<QTreeWidgetItem*>(current.internalPointer());
 
423
    toCodeModelItem *item = static_cast<toCodeModelItem*>(current.internalPointer());
424
424
    if (item && item->parent())
425
425
    {
426
 
        QString ctype = item->parent()->text(0);
 
426
        QString ctype = item->parent()->display();
427
427
        if(ctype.isEmpty() || ctype == "Code")
428
428
            return;
429
429
        ctype = ctype.toUpper();
430
430
 
431
 
        viewSource(Schema->currentText(), item->text(0), ctype, 0);
 
431
        viewSource(Schema->currentText(), item->display(), ctype, 0);
432
432
        if (ctype == "PACKAGE" || ctype == "TYPE")
433
 
            viewSource(Schema->currentText(), item->text(0), ctype + " BODY", 0);
 
433
            viewSource(Schema->currentText(), item->display(), ctype + " BODY", 0);
434
434
    }
435
435
#ifdef AUTOEXPAND
436
436
    else if (item && !item->parent())