42 QLabel *empty1, *empty2;
48 setAttribute(Qt::WA_DeleteOnClose);
53 slist <<
_(
"Event") <<
_(
"Out") <<
_(
"Mes") <<
_(
"Pop");
54 msgtab->setColumnCount(slist.count());
55 msgtab->setHorizontalHeaderLabels(slist);
56 msgtab->setProperty(
"showGrid",
"false");
57 msgtab->setEditTriggers(QAbstractItemView::NoEditTriggers);
58 msgtab->horizontalHeader()->resizeSections(QHeaderView::
60 msgtab->verticalHeader()->setVisible(
false);
61 msgtab->setSelectionMode(QAbstractItemView::NoSelection);
62 msgtab->setSelectionBehavior(QAbstractItemView::SelectColumns);
64 but1 =
new QPushButton(style()->standardIcon(
65 QStyle::SP_DialogCancelButton),
_(
"Cancel"));
67 layout->addWidget(but1, 1, 1, 1, 1);
68 but2 =
new QPushButton(style()->standardIcon(QStyle::SP_DialogOkButton),
71 layout->addWidget(but2, 1, 2, 1, 1, Qt::AlignRight);
72 layout->addWidget(empty1, 0, 0, 1, 1);
74 layout->addWidget(empty2, 0, 3, 1, 1);
75 layout->setColumnStretch(0, 1);
76 layout->setColumnStretch(1, 10);
77 layout->setColumnStretch(3, 1);
79 gui()->gimme_place(
this,
"MSD");
80 index =
gui()->add_game_tab(
this);
81 gui()->game_tab_widget->setCurrentIndex(index);
84 margins =
msgtab->contentsMargins();
85 len =
msgtab->horizontalHeader()->length() + margins.left()
87 +
current_app()->style()->pixelMetric(QStyle::PM_ScrollBarExtent);
89 msgtab->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
90 but1->setFixedWidth(
len / 3);
91 but2->setFixedWidth(
len / 3);
QApplication * current_app()