This file is indexed.

/usr/lib/perl5/Qt3Support4.pm is in libqt3support4-perl 4:4.13.0-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
#***************************************************************************
#                          Qt3Support4.pm  -  Qt3Support perl client lib
#                             -------------------
#    begin                : 09-02-2010
#    copyright            : (C) 2010 by Chris Burel
#    email                : chrisburel@gmail.com
# ***************************************************************************

#***************************************************************************
# *                                                                         *
# *   This program is free software; you can redistribute it and/or modify  *
# *   it under the terms of the GNU General Public License as published by  *
# *   the Free Software Foundation; either version 2 of the License, or     *
# *   (at your option) any later version.                                   *
# *                                                                         *
# ***************************************************************************

package Qt3Support4::_internal;

use strict;
use warnings;
use QtCore4;
use base qw(Qt::_internal);

my %non3namedclasses;
@non3namedclasses{qw(
        QColorGroup
        QConstString
        QCustomEvent
        QMenuItem
        QTextIStream)} = undef;

sub init {
    foreach my $c ( @{getClassList()} ) {
        Qt3Support4::_internal->init_class($c);
    }
    foreach my $e ( @{getEnumList()} ) {
        Qt3Support4::_internal->init_enum($e);
    }
}

sub normalize_classname {
    my ( $self, $cxxClassName ) = @_;
    if ( $cxxClassName =~ m/^Q3/ ) {
        $cxxClassName =~ s/^Q3/Qt3::/;
    }
    elsif ( defined $non3namedclasses{$cxxClassName} ) {
        $cxxClassName =~ s/^Q/Qt::/;
    }
    else {
        $cxxClassName = $self->SUPER::normalize_classname( $cxxClassName );
    }
    return $cxxClassName;
}

package Qt3Support4;

use strict;
use warnings;
use QtCore4;
use QtGui4;
use QtNetwork4;
use QtSql4;

require XSLoader;

our $VERSION = '0.96';

QtCore4::loadModule('Qt3Support4', $VERSION);

Qt3Support4::_internal::init();

sub Qt3::ListViewItem::ON_DESTROY {
    package Qt::_internal;
    my $parent = Qt::this()->listView();
    if( $parent )
    {
        ${ $parent->{"hidden children"} } { sv_to_ptr(Qt::this()) } = Qt::this();
        Qt::this()->{"has been hidden"} = 1;
        # setAllocated( Qt::this(), 0 );
        return 1
    }
    # setAllocated( Qt::this(), 1 );
    return 0
}

sub Qt3::IconViewItem::ON_DESTROY
{
    package Qt::_internal;
    my $parent = Qt::this()->iconView;
    if( $parent )
    {
        ${ $parent->{"hidden children"} } { sv_to_ptr(Qt::this()) } = Qt::this();
        Qt::this()->{"has been hidden"} = 1;
        # setAllocated( Qt::this(), 0 );
        return 1
    }
    # setAllocated( Qt::this(), 1 );
    return 0
}

sub Qt3::ListBoxItem::ON_DESTROY
{
    package Qt::_internal;
    my $parent = Qt::this()->listBox();
    if( $parent )
    {
        ${ $parent->{"hidden children"} } { sv_to_ptr(Qt::this()) } = Qt::this();
        Qt::this()->{"has been hidden"} = 1;
        # setAllocated( Qt::this(), 0 );
        return 1
    }
    # setAllocated( Qt::this(), 1 );
    return 0
}

sub Qt3::TableItem::ON_DESTROY
{
    package Qt::_internal;
    my $parent = Qt::this()->table;
    if( $parent )
    {
        ${ $parent->{"hidden children"} } { sv_to_ptr(Qt::this()) } = Qt::this();
        Qt::this()->{"has been hidden"} = 1;
        # setAllocated( Qt::this(), 0 );
        return 1
    }
    # setAllocated( Qt::this(), 1 );
    return 0
}

sub Qt3::LayoutItem::ON_DESTROY
{
    package Qt::_internal;
    my $parent = Qt::this()->widget() || Qt::this()->layout();
    if( $parent )
    {
        ${ $parent->{"hidden children"} } { sv_to_ptr(Qt::this()) } = Qt::this();
    }
    else # a SpacerItem...
    {
        # XXX check this
        # push @PersistentObjects, Qt::this();
    }
    Qt::this()->{"has been hidden"} = 1;
    # setAllocated( Qt::this(), 0 );
    return 1
}

sub Qt3::Layout::ON_DESTROY
{
    package Qt::_internal;
    my $parent = Qt::this()->mainWidget() || Qt::this()->parent();
    if( $parent )
    {
        ${ $parent->{"hidden children"} } { sv_to_ptr(Qt::this()) } = Qt::this();
        Qt::this()->{"has been hidden"} = 1;
        return 1
    }
    return 0
}

sub Qt3::StyleSheetItem::ON_DESTROY
{
    package Qt::_internal;
    my $parent = Qt::this()->styleSheet();
    if( $parent )
    {
        ${ $parent->{"hidden children"} } { sv_to_ptr(Qt::this()) } = Qt::this();
        Qt::this()->{"has been hidden"} = 1;
        # setAllocated( Qt::this(), 0 );
        return 1
    }
    # setAllocated( Qt::this(), 1 );
    return 0
}

sub Qt3::SqlCursor::ON_DESTROY
{
    package Qt::_internal;
    # XXX Check this
    #push @PersistentObjects, Qt::this();
    Qt::this()->{"has been hidden"} = 1;
    # setAllocated( Qt::this(), 0 );
    return 1
}

1;