Back to index

texmacs  1.0.7.15
Public Member Functions
QTMInteractivePrompt Class Reference

#include <QTMInteractivePrompt.hpp>

List of all members.

Public Member Functions

 QTMInteractivePrompt (qt_widget, qt_widget, QWidget *p=0)
void start ()
void end ()

Detailed Description

Definition at line 18 of file QTMInteractivePrompt.hpp.


Constructor & Destructor Documentation

QTMInteractivePrompt::QTMInteractivePrompt ( qt_widget  int_prompt,
qt_widget  int_input,
QWidget *  p = 0 
)

Definition at line 18 of file QTMInteractivePrompt.cpp.

  : QWidget(parent)
{
  QLayoutItem *li = int_prompt->as_qlayoutitem ();
  QLayoutItem *li2 = int_input->as_qlayoutitem ();
  QHBoxLayout *_hl = new QHBoxLayout ();

       setStyle (qtmstyle ());
  setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
  
       if (QLabel *_la = qobject_cast<QLabel*> (li->widget ()))
    _la->setBuddy (li2->widget ());
       if (QWidget *w = qobject_cast<QWidget*> (li2->widget ())) 
    w->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
  _hl->addItem (li);
  _hl->addSpacing (6);
  _hl->addItem (li2);
       _hl->setContentsMargins (3,0,0,0);
  setLayout (_hl);
       
  QFont f = font ();
  f.setPointSize (11);
  setFont (f);

  
}

Here is the call graph for this function:


Member Function Documentation

Definition at line 56 of file QTMInteractivePrompt.cpp.

                               {
}

Here is the caller graph for this function:

Definition at line 48 of file QTMInteractivePrompt.cpp.

                                 {
  QWidget *_le = findChild<QLineEdit*>();
  if (_le) {
    _le->show ();
    _le->setFocus (Qt::OtherFocusReason);  
  }
}

Here is the caller graph for this function:


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