| 67 | class SoundRecordsWidget : public QTableWidget { |
| 68 | public: |
| 69 | virtual bool viewportEvent(QEvent *event); |
| 70 | }; |
| 71 | |
| 72 | bool SoundRecordsWidget::viewportEvent(QEvent *event) |
| 73 | { |
| 74 | if (event->type() == QEvent::ToolTip) { |
| 75 | QHelpEvent *helpEvent = static_cast<QHelpEvent*>(event); |
| 76 | QModelIndex index = indexAt(helpEvent->pos()); |
| 77 | if (index.isValid()) { |
| 78 | QSize sizeHint = itemDelegate(index)->sizeHint(viewOptions(), index); |
| 79 | if (sizeHint.width() <= visualRect(index).width()) { |
| 80 | QToolTip::hideText(); |
| 81 | return true; |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | return QTableView::viewportEvent(event); |
| 86 | } |
| 87 | |
66 | 88 | MainAppFrameWindow3::MainAppFrameWindow3() :QMainWindow(NULL), pLefttoolbar(NULL), pHomeAction(NULL), pSoundAction(NULL), pConfSetupAction(NULL), pPreferencesAction(NULL), pCentralWidget(NULL), pErrorMessageWidget(NULL), iWarningSeconds(0), pMainWindowStackFrame(NULL), pSplitter(NULL), |
67 | 89 | pGroupUsersTreeWidget(NULL), iPrevEnteredCellx(-1), iPrevEnteredCelly(-1), pConferenceWidget(NULL), bConferenceListRefreshing(false), pUsersWidget(NULL), pConferenceStartEndButton(NULL), iPrevSelectedParticipanty(-1), bParticipantListRefreshing(false), ptelephonedlg(NULL), pUserInfodlg(NULL), pUserEditdlg(NULL), pLogView(NULL), |
68 | 90 | pSplitterSoundPlay(NULL), bSplitterWasAdjusted(false), |