TabBar::TabBar(QWidget *parent) : QWidget(parent), ui(new Ui::TabBar) { enter ui->setupUi(this); ui->cmdScrollLeft->hide(); ui->cmdScrollRight->hide(); QHBoxLayout *layout = new QHBoxLayout(); layout->addItem(new QSpacerItem(1,1, QSizePolicy::Expanding, QSizePolicy::Expanding)); layout->setContentsMargins(0, 0, 0, 0); layout->setSpacing(2); ui->scrollContent->setLayout(layout); ui->cmdScrollLeft->hide(); ui->cmdScrollRight->hide(); ui->scroll->adjustSize(); ui->scrollContent->adjustSize(); updateScrollButtonsVisibility(); connect(Core::ui(), SIGNAL(createTab(QString, bool)), SLOT(createTab(QString, bool))); connect(Core::ui(), SIGNAL(activateTab(QString)), SLOT(activateTab(QString))); connect(Core::ui(), SIGNAL(setTabName(QString,QString)), SLOT(setTabName(QString,QString))); connect(Core::ui(), SIGNAL(setTabIcon(QString,QString)), SLOT(setTabIcon(QString,QString))); connect(Core::ui(), SIGNAL(highlight(QString)), SLOT(highlight(QString))); connect(Core::ui(), SIGNAL(closeTab(QString)), SLOT(closeTab(QString))); connect(ui->cmdScrollLeft, SIGNAL(clicked()), SLOT(scrollLeft())); connect(ui->cmdScrollRight, SIGNAL(clicked()), SLOT(scrollRight())); leave }
void WidgetMain::onTransmissionStatusChanged(Transmission::Status status) { if (status == Transmission::Started) highlight(Connected); else highlight(Disconnected); }
bool GfxButton::process(Event &event) { switch (event.eventType) { case EVENT_BUTTON_DOWN: if (!event.handled) { if (_bounds.contains(event.mousePos)) { bool result = focusedEvent(event); event.handled = true; return result; } } break; case EVENT_KEYPRESS: if (!event.handled && (event.kbd.keycode == _keycode)) { // Highlight the button momentarily highlight(); g_system->delayMillis(20); highlight(); event.handled = true; return true; } default: break; } return false; }
void InspectorOverlay::drawNodeHighlight() { if (!m_highlightNode) return; String selectors = m_nodeHighlightConfig.selectorList; RefPtrWillBeRawPtr<StaticElementList> elements = nullptr; TrackExceptionState exceptionState; ContainerNode* queryBase = m_highlightNode->containingShadowRoot(); if (!queryBase) queryBase = m_highlightNode->ownerDocument(); if (selectors.length()) elements = queryBase->querySelectorAll(AtomicString(selectors), exceptionState); if (elements && !exceptionState.hadException()) { for (unsigned i = 0; i < elements->length(); ++i) { Element* element = elements->item(i); InspectorHighlight highlight(element, m_nodeHighlightConfig, false); RefPtr<JSONObject> highlightJSON = highlight.asJSONObject(); evaluateInOverlay("drawHighlight", highlightJSON.release()); } } bool appendElementInfo = m_highlightNode->isElementNode() && !m_omitTooltip && m_nodeHighlightConfig.showInfo && m_highlightNode->layoutObject() && m_highlightNode->document().frame(); InspectorHighlight highlight(m_highlightNode.get(), m_nodeHighlightConfig, appendElementInfo); if (m_eventTargetNode) highlight.appendEventTargetQuads(m_eventTargetNode.get(), m_nodeHighlightConfig); RefPtr<JSONObject> highlightJSON = highlight.asJSONObject(); evaluateInOverlay("drawHighlight", highlightJSON.release()); }
int Frame::handle(int in) { //DJV_DEBUG("Frame::handle"); switch (in) { case FL_ENTER: if (highlight() && active()) { highlight_signal.emit(this); } break; case FL_LEAVE: if (highlight() && active()) { highlight_off_signal.emit(this); } break; } return Widget::handle(in); }
void QtTestDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { const QString line = index.data().toString(); QStyleOptionViewItem opt = option; if (line.startsWith("PASS :"******"FAIL! :")) { highlight(opt, failBrush); } else if (line.startsWith("XFAIL :") || line.startsWith("SKIP :")) { highlight(opt, xFailBrush); } else if (line.startsWith("XPASS :"******"QDEBUG :")) { highlight(opt, debugBrush); } QItemDelegate::paint(painter, opt, index); }
bool killmove(int i, int j, int c){ // checks for condition of kill move if( i > 8 || i <= 0 || j <= 0 || j > 8)return false; if(initial(i , j) && c==1 && multiplekill == false){ invisible(xco[0],yco[0]); highlight(xco[0],yco[0],30); xco[0]=i; yco[0]=j; //case where player changes his selection rempossible(); showpossible(xco[0],yco[0]); highlight(xco[0],yco[0],35); return false; } if(p[j-1][i-1]!=0){ return false; // checking whether place is empty or not } if(pow(i-xco[0],2)==4 && pow(j-yco[0],2)==4){ // checks for killing move if( (chance == true && ( p[ (yco[0]+j)/2 - 1][ (xco[0]+i)/2 - 1] == 2 || p[ (yco[0]+j)/2 - 1][ (xco[0]+i)/2 - 1] == 32 ) ) || (chance == false && ( p[ (yco[0]+j)/2 - 1][ (xco[0]+i)/2 - 1] == 1 || p[ (yco[0]+j)/2 - 1 ][ (xco[0]+i)/2 - 1] == 31) )) if((chance==true && j-yco[0]>0)||(chance==false && j-yco[0]<0)||(p[yco[0]-1][xco[0]-1]==31)||(p[yco[0]-1][xco[0]-1]==32)){ return true; } } return false; }
void WidgetMain::onTransmissionCommandSend(Command::Result result) { const int timeout = 2000; switch (result) { case Command::Ok: break; case Command::Timeout: statusBar()->showMessage(tr("Timeout"), timeout); break; case Command::Aborted: statusBar()->showMessage(tr("Aborted"), timeout); break; case Command::BadChecksum: statusBar()->showMessage(tr("Bad checksum"), timeout); break; case Command::IllegalFunction: case Command::IllegalDataAddress: case Command::IllegalDataValue: case Command::Unknown: statusBar()->showMessage(tr("Protocol error"), timeout); break; } if (result == Command::Ok) highlight(Normal); else highlight(Error); }
//! called if an event happened. bool CGUIMenu::OnEvent(SEvent event) { if (!IsEnabled) return Parent ? Parent->OnEvent(event) : false; switch(event.EventType) { case EET_GUI_EVENT: switch(event.GUIEvent.EventType) { case gui::EGET_ELEMENT_FOCUS_LOST: if (event.GUIEvent.Caller == (IGUIElement*)this) closeAllSubMenus(); return true; } break; case EET_MOUSE_INPUT_EVENT: switch(event.MouseInput.Event) { case EMIE_LMOUSE_LEFT_UP: { core::position2d<s32> p(event.MouseInput.X, event.MouseInput.Y); if (AbsoluteClippingRect.isPointInside(p)) { if (HighLighted != -1) Environment->removeFocus(this); else highlight(core::position2d<s32>(event.MouseInput.X, event.MouseInput.Y)); } else { s32 t = sendClick(p); if ((t==0 || t==1) && Environment->hasFocus(this)) Environment->removeFocus(this); } } return true; case EMIE_LMOUSE_PRESSED_DOWN: if (!Environment->hasFocus(this)) { Environment->setFocus(this); if (Parent) Parent->bringToFront(this); } return true; case EMIE_MOUSE_MOVED: if (Environment->hasFocus(this)) highlight(core::position2d<s32>(event.MouseInput.X, event.MouseInput.Y)); return true; } break; } return Parent ? Parent->OnEvent(event) : false; }
/* render_char: renders the character, and if the pointer points to the * character it will be hihglighted */ void render_char (char c, bool point, WINDOW *w){ if (point) { if (c == '\n') { waddch(w, highlight(c)); waddch(w, '\n'); } else { waddch(w, highlight(c)); } } else { waddch(w, c); } }
static void highlight(int y, int x, uint8_t val) { uint8_t nval = arena[y][x]; if ( nval != val || nval == 0 || nval & 128 ) { return; } arena[y][x] |= 128; ++selected;; if ( x > 0 ) highlight(y, x - 1, nval); if ( x < ARENA_W - 1 ) highlight(y, x + 1, nval); if ( y > 0 ) highlight(y - 1, x, nval); if ( y < ARENA_H - 1 ) highlight(y + 1, x, nval); }
void TestDoxDelegate::paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const { const QString line = index.data().toString(); QStyleOptionViewItem opt = option; if (line.startsWith(" [x]")) { highlight(opt, passBrush); } else if (line.startsWith(" [ ]")) { highlight(opt, failBrush); } QItemDelegate::paint(painter, opt, index); }
void WindowImpl::draw() { CL_Display::push_translate (parent->get_screen_x(), parent->get_screen_y()); CL_Color highlight(255, 255, 255); CL_Color midtone(150, 150, 150); CL_Rect rect = parent->get_position() ; Box::draw_window(CL_Rect(CL_Point(0, 0), CL_Size(rect.get_width()-1, rect.get_height()-1))); Box::draw_panel_down(client_area->get_position()); /* CL_Display::fill_rect(CL_Rect(CL_Point(0, 0), rect.get_size()), CL_Color(220, 220, 220)); CL_Display::draw_rect(CL_Rect(CL_Point(0, 0), rect.get_size()), CL_Color(0, 0, 0)); CL_Display::draw_line(1, rect.get_height()-2, rect.get_width()-2, rect.get_height()-2, midtone); CL_Display::draw_line(rect.get_width()-2, 1, rect.get_width()-2, rect.get_height()-2, midtone); CL_Display::draw_line(1, 1, rect.get_width()-2, 1, highlight); CL_Display::draw_line(1, 1, 1, rect.get_height()-2, highlight); */ CL_Display::pop_modelview(); }
void display_menu(MENU *menu) { int i; cls(); title(menu->title); mvcur(0, 0, STARTROW, STARTCOL); refresh(); for (i = 0; i <= menu->num_items - 1; i++) { move(STARTROW + i, STARTCOL); standend(); addstr(menu->items[i]); refresh(); } center_text(STARTROW + menu->num_items + 2, "Enter a number, <up arrow>, or <down arrow>."); if (!level) { center_text(STARTROW + menu->num_items + 3, "Press 'q' to exit, <return> to confirm choice."); } else { center_text(STARTROW + menu->num_items + 3, "Press 'q' to exit, 'r' for main menu, " "<return> to confirm choice."); } if (!level) highlight(main_menu); }
void InfoApplet::dataUpdated( const QString& name, const Plasma::DataEngine::Data& data ) { Q_UNUSED( name ); if( data.isEmpty() ) return; if( m_initialized ) { QString currentHtml = data[ "main_info" ].toString(); if ( !currentHtml.isEmpty() ) { QColor highlight( App::instance()->palette().highlight().color() ); highlight.setHsvF( highlight.hueF(), 0.3, .95, highlight.alphaF() ); currentHtml = currentHtml.replace( "{text_color}", App::instance()->palette().brush( QPalette::Text ).color().name() ); currentHtml = currentHtml.replace( "{content_background_color}", highlight.name() ); currentHtml = currentHtml.replace( "{background_color}", PaletteHandler::highlightColor().lighter( 150 ).name()); currentHtml = currentHtml.replace( "{border_color}", PaletteHandler::highlightColor().lighter( 150 ).name() ); m_webView->setHtml( currentHtml, KUrl( QString() ) ); } else { currentHtml = s_defaultHtml; currentHtml = currentHtml.replace( "%%SUBJECT_NAME%%", data[ "subject_name" ].toString() ); m_webView->setHtml( currentHtml ); } m_webView->page()->setLinkDelegationPolicy( QWebPage::DelegateAllLinks ); updateConstraints(); } }
DocBlock::DocBlock(QPointF pos, BlockGroup *parentgroup) //! manual creation : Block(new TreeElement("doc_comment", true, true), 0, parentgroup) { element->setFloating(true); // find arrow target Block *arrowTarget = group->selectedBlock(); setParentBlock(arrowTarget); //! set parent block // clean up removeLinks(); //! remove all "contacts with family" setParentItem(parentgroup); //! set group as parent item myTextItem->adaptToFloating(); //! disconnect all harmful signals // set flags docType = Generic; setFlag(QGraphicsItem::ItemIsMovable); setFlag(QGraphicsItem::ItemClipsChildrenToShape, false); myTextItem->setTextInteractionFlags(Qt::NoTextInteraction); setAcceptDrops(false); setZValue(1); backup = 0; setPos(pos); setVisible(true); locked = true; highlightFormat = group->docScene->getFormatFor(element->getType()); highlight(highlightFormat); // add arrow arrow = 0; addArrowTo(arrowTarget); }
// コマンド出力のうち画面に収まる最後の部分を表示する showlastpart() { int row; clear(); // curses の画面消去を呼び出す // 'ps ax'の出力(の最後の部分)を画面に描画する準備をします。 // 画面の行数以上に出力があるかどうかで2つの場合分けをする。 // ます、出力がすべて画面に収まる場合 if (ncmdlines <= LINES) { // LINES は cursesで管理される // int型変数であり、 // 画面の行数と同じ。 cmdstartrow = 0; nwinlines = ncmdlines; } else { // 次に出力が画面よりも大きい場合。 cmdstartrow = ncmdlines - LINES; nwinlines = LINES; } cmdlastrow = cmdstartrow + nwinlines - 1; // 画面に行を表示する for (row = cmdstartrow, winrow = 0; row <= cmdlastrow; row++,winrow++) mvaddstr(winrow,0,cmdoutlines[row]); // カーソルを指定した場所に移動して、 // そこに文字を描画するという // curses呼び出し refresh(); // 画面更新を画面に反映するには // cursesライブラリのこれを呼び出します // 最後の行をハイライト表示する winrow--; highlight(); }
void updown(int inc) { int tmp = winrow + inc; // ignore attempts to go off the edge of the screen if (tmp >= 0 && tmp < LINES) { // rewrite the current line before moving; since our current font // is non-BOLD (actually A_NORMAL), the effect is to unhighlight // this line mvaddstr(winrow,0,cmdoutlines[cmdstartrow+winrow]); // highlight the line we’re moving to winrow = tmp; highlight(); } }
float Sensor::specialUpdate(float tpf, Input* pInput) { // Super call InteractiveElement::specialUpdate(tpf, pInput); // Penetration by input bool penetrated = penetratedByInput(pInput); if (penetrated) { // Will be used by this sensor pInput->gazeUsed = true; // Remove highlight highlight(false); } mPenetration.update(tpf / mpLayout->getConfig()->sensorPenetrationDecreaseDuration, !penetrated); // Inform listener after updating when penetrated if (mPenetration.getValue() > 0) { mpNotificationQueue->enqueue(this, Notification::SENSOR_PENETRATED); } return 0; }
tree edit_env_rep::rewrite_inactive_arg ( tree t, tree var, int i, bool block, bool flush) { tree r= subvar (var, i); if ((inactive_mode == INACTIVE_INLINE_RECURSE) || (inactive_mode == INACTIVE_BLOCK_RECURSE)) { if (N (recover_env) > 0) { int j; tree recover= copy (recover_env), old_recover= recover_env; for (j=0; j<N(recover); j+=2) { string var= recover[j]->label; recover[j+1]= read (var); write_update (var, recover_env[j+1]); } recover_env= tuple (); r= rewrite_inactive (t[i], r, block, flush); recover_env= old_recover; for (j=0; j<N(recover); j+=2) write_update (recover[j]->label, recover[j+1]); } else r= rewrite_inactive (t[i], r, block, flush); } return highlight (r, t[i], drd->get_type_child (t, i)); }
void TagWidget::setText(QString text) { blockSignals(true); GroupedLineEdit::setText(text); blockSignals(false); highlight(); }
void StringConfig::draw(QPainter* p) { QFontMetrics fm = p->fontMetrics(); for (int r=0; r<nrows; r++) { p->translate(0,fm.lineSpacing()); p->setPen(rowColor(r)); int tw=0; QString s; int i=0; for (; !(s=text(r,i)).isNull(); ++i) { int w = fm.width(s); tw += w; } bool spread = spreadRow(r);// && parent->width() > tw; int xw = spread ? (width2()-tw)/(i-1) : 3; int x = spread ? (width2()-tw-xw*(i-1))/2 : 2; i=0; for (; !(s=text(r,i)).isNull(); ++i) { int w = fm.width(s)+xw; if ( highlight(r,i) ) { p->fillRect(x-xw/2,1+fm.descent()-fm.lineSpacing(),w,fm.lineSpacing(),Qt::black); p->setPen(Qt::white); }else{ p->setPen(Qt::black); } p->drawText(x,-fm.descent()-1,s); x += w; } } }
long def_window(word xs,word ys,char *name) { word x = 0,y = 0; WINDOW *p; CTL3D ctl; FC_TABLE fc; long q; if (waktual != NULL) { x = waktual->x; y = waktual->y; } highlight(&ctl,WINCOLOR); ctl.bsize = 2;ctl.ctldef = 0; x += 20;y += 20; memcpy(fc,flat_color(RGB555(31,31,0)),sizeof(FC_TABLE)); fc[0] = 0x0000; if (x+xs>MAX_X-2) x = MAX_X-2-xs; if (y+ys>MAX_Y-2) y = MAX_Y-2-ys; p = create_window(x,y,xs,ys,WINCOLOR,&ctl); q = desktop_add_window(p); define(0,2,2,xs-5-20*(xs>= 70),14,0,win_label,name); ctl.bsize = 1;ctl.ctldef = 1; o_end->autoresizex = 1; property(&ctl,vga_font,&fc,LABELCOLOR); if (xs>= 70) { define(1,1,1,19,16,1,button,"\x0f"); property(NULL,icones,&icone_color,WINCOLOR);on_change(close_test); } return q; }
void widget_view::show(class_filter *f) { // set loading status loading = true; // create loader thread QThread* thread = new QThread; class_loader* loader = new class_loader(config, filename); loader->moveToThread(thread); connect(thread, SIGNAL(started()), loader, SLOT(process())); connect(loader, SIGNAL(finished()), thread, SLOT(quit())); connect(loader, SIGNAL(finished()), loader, SLOT(deleteLater())); connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); // connect loader signals connect(loader, SIGNAL(data(QString)), this, SLOT(slot_add_data(QString))); connect(loader, SIGNAL(finished()), this, SLOT(slot_finished())); connect(loader, SIGNAL(progress(int)), this, SLOT(slot_progress(int))); // trigger loader when template loading is finished connect(this, SIGNAL(loadFinished(bool)), thread, SLOT(start())); // set highligting highlight(hide); // initialize view setUrl(QUrl("qrc:/view/view.html")); }
myGraphicsView::myGraphicsView(QWidget *parent) : QGraphicsView(parent) { setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform); this->installEventFilter(this); this->setTransformationAnchor(QGraphicsView::AnchorUnderMouse); this->setResizeAnchor( QGraphicsView::AnchorUnderMouse ); origin = QPoint(0,0); mTL = new QLabel(this); scene = new QGraphicsScene(this); scene->addText("No Images Available. Please browse to a folder containing appropriate images."); setScene(scene); setCursor(Qt::CrossCursor); setDisabled(true); mBR = new QLabel(this); mTL->setStyleSheet("QLabel { background-color : white; color : black;}"); mBR->setStyleSheet("QLabel { background-color : white; color : black;}"); mTL->hide(); mBR->hide(); rubberBandActive = false; rubberBand = new QRubberBand(QRubberBand::Rectangle, this); QPalette palette; QColor highlight(Qt::green); highlight.setAlpha(100); palette.setBrush(QPalette::Highlight, QBrush(highlight)); palette.setBrush(QPalette::Shadow, QColor(Qt::red)); rubberBand->setPalette(palette); rubberBand->setGeometry(20, 20, 200, 100); }
void move_end(int i1, int j1, int i2, int j2) // does all changes at the end of a turn { invisible(i1,j1); // removes piece from initial position Circle c(i2*100*f,j2*100*f,30*f); // creating piece at new position c.setFill(true); int r,g,b; if(chance){r=255;g=b=0;} else r=g=b=0; c.setColor(COLOR(r,g,b)); c.imprint(); c.hide(); p[yco[1]-1][xco[1]-1]=p[yco[0]-1][xco[0]-1]; //changing virtual board:at new location p[yco[0]-1][xco[0]-1]=0; //changing virtual board:updating old if(abs(yco[1]-yco[0])==2){ // for killing move k=p[(yco[0]+yco[1])/2-1][(xco[0]+xco[1])/2-1]; p[(yco[0]+yco[1])/2-1][(xco[0]+xco[1])/2-1]=0; invisible((xco[0]+xco[1])/2,(yco[0]+yco[1])/2); } if(chance==true){ if(yco[1]==8){ p[yco[1]-1][xco[1]-1]=31; // 3 indicates king 1 indicates player } } else if(yco[1]==1){ p[yco[1]-1][xco[1]-1]=32; // 3 indicates king 2 indicates player } if(p[yco[1]-1][xco[1]-1]==31 || p[yco[1]-1][xco[1]-1]==32){ // changing animation for king c.show(); c.reset(i2*100*f,j2*100*f,20*f); c.setColor(COLOR(255,255,255)); c.imprint(); c.hide(); } multiplekill=killmade=false; // initialising the 2 variables if(abs(xco[1]-xco[0])==2)killmade=true; // checking kill made xco[0]=xco[1]; yco[0]=yco[1]; if(killmade == true){ // checking for multiple kill for (int x=xco[0]-2; x<=xco[0]+2; x+=4){ for (int y=yco[0]-2; y<=yco[0]+2; y+=4){ if(killmove(x,y,0)){ multiplekill = true; click++; highlight(xco[0],yco[0],35); showpossible(xco[0],yco[0]); break; } } } } if( killmade == true ){ if( multiplekill == false ) chance=!chance; //condition when to change chance } else { chance = !chance; killmade = multiplekill = false; //condition when to change chance } }
QImage *createRoundButtonBackground(const QMatrix &matrix) const { QRect scaledRect; scaledRect = matrix.mapRect(QRect(0, 0, this->logicalSize.width(), this->logicalSize.height())); QImage *image = new QImage(scaledRect.width(), scaledRect.height(), QImage::Format_ARGB32_Premultiplied); image->fill(QColor(0, 0, 0, 0).rgba()); QPainter painter(image); painter.setRenderHint(QPainter::SmoothPixmapTransform); painter.setRenderHint(QPainter::Antialiasing); painter.setPen(Qt::NoPen); if (Colors::useEightBitPalette){ painter.setPen(QColor(120, 120, 120)); if (this->pressed) painter.setBrush(QColor(60, 60, 60)); else if (this->highlighted) painter.setBrush(QColor(100, 100, 100)); else painter.setBrush(QColor(80, 80, 80)); } else { QLinearGradient outlinebrush(0, 0, 0, scaledRect.height()); QLinearGradient brush(0, 0, 0, scaledRect.height()); brush.setSpread(QLinearGradient::PadSpread); QColor highlight(255, 255, 255, 70); QColor shadow(0, 0, 0, 70); QColor sunken(220, 220, 220, 30); QColor normal1(255, 255, 245, 60); QColor normal2(255, 255, 235, 10); if (this->type == TextButton::PANEL){ normal1 = QColor(200, 170, 160, 50); normal2 = QColor(50, 10, 0, 50); } if (pressed) { outlinebrush.setColorAt(0.0f, shadow); outlinebrush.setColorAt(1.0f, highlight); brush.setColorAt(0.0f, sunken); painter.setPen(Qt::NoPen); } else { outlinebrush.setColorAt(1.0f, shadow); outlinebrush.setColorAt(0.0f, highlight); brush.setColorAt(0.0f, normal1); if (!this->highlighted) brush.setColorAt(1.0f, normal2); painter.setPen(QPen(outlinebrush, 1)); } painter.setBrush(brush); } if (this->type == TextButton::PANEL) painter.drawRect(0, 0, scaledRect.width(), scaledRect.height()); else painter.drawRoundedRect(0, 0, scaledRect.width(), scaledRect.height(), 10, 90, Qt::RelativeSize); return image; }
/* remove the current selection highlight, if any, from the console holding the selection. */ void clear_selection(void) { highlight_pointer(-1); /* hide the pointer */ if (sel_start != -1) { highlight(sel_start, sel_end); sel_start = -1; } }
void PrivateChat::append(uint dir, uint ts, const QString& _u, const QString& _l) { if(dir == 0) { mChatPanel->append(ts, _u, _l); if (_l.contains(museeq->nickname())) emit highlight(2); else emit highlight(1); logMessage(_u, ts, _u, _l); } else if (dir == 1) { mChatPanel->append(ts, museeq->nickname(), _l); logMessage(_u, ts, museeq->nickname(), _l); } }
UiSyncItem* UiPathPointsItems::askForNewChild(UiSyncItem *i, bool) { UiPathPointsItem *item = 0; if((i) && (i->parentItem)) item = generateItem(i); else item = generateItem(0, NxCurvePoint()); update(); highlight(item); return item; }