void TestZoomButtonPanel::init()
{
// Create a new instance of ZoomButtonPanel
- ZoomButtonPanel zoomButtonPanel(NULL, 10, 10);
+ ZoomButtonPanel zoomButtonPanel(0, 10, 10);
// Check that panel is positioned to the right place
QCOMPARE(zoomButtonPanel.pos(), QPoint(10, 10));
// Check that both of the buttons images are loaded successfully
- QVERIFY(zoomButtonPanel.m_zoomInButton != NULL);
- QVERIFY(zoomButtonPanel.m_zoomOutButton != NULL);
+ QVERIFY(zoomButtonPanel.m_zoomInButton != 0);
+ QVERIFY(zoomButtonPanel.m_zoomOutButton != 0);
// Check that both of the button icons are at normal mode
QVERIFY(zoomButtonPanel.m_zoomInButton->mode() == QIcon::Normal);
void TestZoomButtonPanel::disableZoomIn()
{
// Create a new instance of ZoomButtonPanel
- ZoomButtonPanel zoomButtonPanel(NULL, NULL, NULL);
+ ZoomButtonPanel zoomButtonPanel(0, 0, 0);
// Disable the button
zoomButtonPanel.disableZoomInButton();
void TestZoomButtonPanel::disableZoomOut()
{
// Create a new instance of ZoomButtonPanel
- ZoomButtonPanel zoomButtonPanel(NULL, NULL, NULL);
+ ZoomButtonPanel zoomButtonPanel(0, 0, 0);
// Disable the button
zoomButtonPanel.disableZoomOutButton();
void TestZoomButtonPanel::reset()
{
// Create a new instance of ZoomButtonPanel
- ZoomButtonPanel zoomButtonPanel(NULL, NULL, NULL);
+ ZoomButtonPanel zoomButtonPanel(0, 0, 0);
// Set both buttons to disabled mode
zoomButtonPanel.m_zoomInButton->setMode(QIcon::Disabled);