Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Public Attributes
TLoadIconEvent Class Reference
Inheritance diagram for TLoadIconEvent:
Inheritance graph
Collaboration diagram for TLoadIconEvent:
Collaboration graph

List of all members.

Public Types

typedef QIcon TResult

Public Member Functions

 TLoadIconEvent (const QString &module, const QString &filename)
virtual void Execute ()

Public Attributes

TResult myResult
QString myModule
QString myFileName

Detailed Description

Definition at line 1423 of file SalomePyQt.cxx.

Member Typedef Documentation

typedef QIcon TLoadIconEvent::TResult

Definition at line 1426 of file SalomePyQt.cxx.

Constructor & Destructor Documentation

TLoadIconEvent::TLoadIconEvent ( const QString &  module,
const QString &  filename 
) [inline]

Definition at line 1430 of file SalomePyQt.cxx.

    : myModule( module ), 
      myFileName ( filename ) {}

Member Function Documentation

virtual void TLoadIconEvent::Execute ( ) [inline, virtual]

Definition at line 1433 of file SalomePyQt.cxx.

    if ( LightApp_Application* anApp = getApplication() ) {
      if ( !myFileName.isEmpty() ) {
        QPixmap pixmap = anApp->resourceMgr()->loadPixmap( myModule, 
                         QApplication::translate( myModule.toLatin1().data(), 
                                                  myFileName.toLatin1().data() ) );
        if ( !pixmap.isNull() )
          myResult = QIcon( pixmap );

Here is the call graph for this function:

Member Data Documentation

Definition at line 1429 of file SalomePyQt.cxx.

Definition at line 1428 of file SalomePyQt.cxx.

Definition at line 1427 of file SalomePyQt.cxx.

The documentation for this class was generated from the following file: