Changeset 435
- Timestamp:
- Dec 22, 2009, 12:42:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/widget/widget.cpp
r426 r435 252 252 // setFocusPolicy(Qt::StrongFocus); 253 253 254 #if 0254 #if 255 255 MyButton *btn1 = new MyButton(this); 256 btn1->setText(QLatin1String(" Hello 1"));257 btn1->setObjectName("Hello 1");256 btn1->setText(QLatin1String("")); 257 btn1->setObjectName("Hello"); 258 258 btn1->move(20, 20); 259 260 261 262 259 263 MyButton *btn2 = new MyButton(this); 260 btn2->setText(Q Latin1String("Hello 2"));261 btn2->setObjectName( "Hello 2");264 btn2->setText(Q")); 265 btn2->setObjectName(); 262 266 btn2->move(20, 60); 267 268 269 263 270 264 271 // QComboBox *cb1 = new MyCombo(this); … … 270 277 // cb2->addItem(QLatin1String("Test 4")); 271 278 272 //QVBoxLayout *mainLayout = new QVBoxLayout();273 //mainLayout->addWidget(btn1);274 //mainLayout->addWidget(btn2);279 QVBoxLayout *mainLayout = new QVBoxLayout(); 280 mainLayout->addWidget(btn1); 281 mainLayout->addWidget(btn2); 275 282 // mainLayout->addWidget(cb1); 276 283 // mainLayout->addWidget(cb2); 277 284 278 //setLayout(mainLayout);285 setLayout(mainLayout); 279 286 #endif 280 287 … … 306 313 307 314 }; 315 316 317 318 319 320 321 322 323 308 324 309 325 #if 0 … … 382 398 #endif 383 399 384 #if 0400 #if 385 401 void keyPressEvent(QKeyEvent *aE) 386 402 { … … 593 609 #endif 594 610 595 #if 1611 #if 596 612 //-------------------------------------------------------------------------- 597 613 // QSettings test … … 613 629 } 614 630 615 q Debug() << "Modified Time key in MySoft/MyApp (system & user)";631 qg() << "Modified Time key in MySoft/MyApp (system & user)"; 616 632 #endif 617 633 … … 650 666 #endif 651 667 652 #if 0668 #if 653 669 QRect r = QApplication::desktop()->availableGeometry(); 654 670 MyWidget widget; … … 679 695 #endif 680 696 681 #if 1697 #if 682 698 //-------------------------------------------------------------------------- 683 699 // QFileDialog test
Note:
See TracChangeset
for help on using the changeset viewer.